From afd31f1b27ce1fc438521ad1f80da41cf58a0a65 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 22 Aug 2023 13:49:09 +0200 Subject: [PATCH] Fill in opkg related info. --- worker.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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";