Fill in opkg related info.

This commit is contained in:
Gerhard Hoffmann 2023-08-22 13:49:09 +02:00
parent f8fef38009
commit afd31f1b27

View File

@ -1142,6 +1142,10 @@ PSAInstalled Worker::getPSAInstalled() {
QString printSysDir("/etc/psa_config"); QString printSysDir("/etc/psa_config");
QString tariffSysDir("/etc/psa_tariff"); QString tariffSysDir("/etc/psa_tariff");
QString tariffRepoDir("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 absPathName;
QString absPathNameRepository; QString absPathNameRepository;
@ -1174,6 +1178,11 @@ PSAInstalled Worker::getPSAInstalled() {
psaInstalled.hw.linuxVersion = m_osVersion; psaInstalled.hw.linuxVersion = m_osVersion;
psaInstalled.hw.cpuSerial = m_cpuSerial; 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.versionHW = deviceControllerVersionHW;
psaInstalled.dc.versionSW = deviceControllerVersionSW; psaInstalled.dc.versionSW = deviceControllerVersionSW;
psaInstalled.dc.gitBlob = "N/A"; psaInstalled.dc.gitBlob = "N/A";