diff --git a/worker.cpp b/worker.cpp index 5de4171..abcb378 100644 --- a/worker.cpp +++ b/worker.cpp @@ -1142,6 +1142,10 @@ PSAInstalled Worker::getPSAInstalled() { QString printSysDir("/etc/psa_config"); QString tariffSysDir("/etc/psa_tariff"); QString tariffRepoDir("etc/psa_tariff"); + QString opkgSysDir("/etc/psa_update"); + QString opkgRepoDir("etc/psa_update"); + QString const &absPathNameOpkg = QDir::cleanPath(opkgSysDir + QDir::separator() + "opkg_commands"); + QString const &absPathNameRepositoryOpkg = QDir::cleanPath(opkgRepoDir + QDir::separator() + "opkg_commands"); QString absPathName; QString absPathNameRepository; @@ -1174,6 +1178,11 @@ PSAInstalled Worker::getPSAInstalled() { psaInstalled.hw.linuxVersion = m_osVersion; psaInstalled.hw.cpuSerial = m_cpuSerial; + psaInstalled.opkg.blob = m_gc.gitBlob(absPathNameOpkg); + psaInstalled.opkg.size = getFileSize(absPathNameOpkg); + psaInstalled.opkg.loadTime = Utils::getTariffLoadTime(absPathNameOpkg); + psaInstalled.opkg.lastCommit = m_gc.gitLastCommit(absPathNameRepositoryOpkg); + psaInstalled.dc.versionHW = deviceControllerVersionHW; psaInstalled.dc.versionSW = deviceControllerVersionSW; psaInstalled.dc.gitBlob = "N/A";