Fill in opkg related info.
This commit is contained in:
parent
f8fef38009
commit
afd31f1b27
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user