Add last-commit for traiff and add info for opkg_commands.
This commit is contained in:
parent
cbe1fd387d
commit
f8fef38009
@ -432,6 +432,13 @@ QString IsmasClient::updateOfPSASendVersion(PSAInstalled const &psa) {
|
|||||||
"\"ZONE\" : %d,"
|
"\"ZONE\" : %d,"
|
||||||
"\"INFO\" : \"%s\","
|
"\"INFO\" : \"%s\","
|
||||||
"\"BLOB\" : \"%s\","
|
"\"BLOB\" : \"%s\","
|
||||||
|
"\"LAST-COMMIT\" : \"%s\","
|
||||||
|
"\"SIZE\" : %d,"
|
||||||
|
"\"LOADED\" : \"%s\""
|
||||||
|
"},"
|
||||||
|
"\"OPKG_COMMANDS\" : {"
|
||||||
|
"\"BLOB\" : \"%s\","
|
||||||
|
"\"LAST-COMMIT\" : \"%s\","
|
||||||
"\"SIZE\" : %d,"
|
"\"SIZE\" : %d,"
|
||||||
"\"LOADED\" : \"%s\""
|
"\"LOADED\" : \"%s\""
|
||||||
"},"
|
"},"
|
||||||
@ -639,9 +646,15 @@ QString IsmasClient::updateOfPSASendVersion(PSAInstalled const &psa) {
|
|||||||
psa.tariff.zone,
|
psa.tariff.zone,
|
||||||
psa.tariff.info.toStdString().c_str(),
|
psa.tariff.info.toStdString().c_str(),
|
||||||
psa.tariff.blob.toStdString().c_str(),
|
psa.tariff.blob.toStdString().c_str(),
|
||||||
|
psa.tariff.lastCommit.toStdString().c_str(),
|
||||||
psa.tariff.size,
|
psa.tariff.size,
|
||||||
psa.tariff.loadTime.toStdString().c_str(),
|
psa.tariff.loadTime.toStdString().c_str(),
|
||||||
|
|
||||||
|
psa.opkg.blob.toStdString().c_str(),
|
||||||
|
psa.opkg.lastCommit.toStdString().c_str(),
|
||||||
|
psa.opkg.size,
|
||||||
|
psa.opkg.loadTime.toStdString().c_str(),
|
||||||
|
|
||||||
psa.cash.blob.toStdString().c_str(),
|
psa.cash.blob.toStdString().c_str(),
|
||||||
psa.cash.size,
|
psa.cash.size,
|
||||||
psa.conf.blob.toStdString().c_str(),
|
psa.conf.blob.toStdString().c_str(),
|
||||||
|
@ -30,6 +30,13 @@ struct PSAInstalled {
|
|||||||
QString cpuSerial;
|
QString cpuSerial;
|
||||||
} hw;
|
} hw;
|
||||||
|
|
||||||
|
struct Opkg {
|
||||||
|
int size;
|
||||||
|
QString blob;
|
||||||
|
QString lastCommit;
|
||||||
|
QString loadTime;
|
||||||
|
} opkg;
|
||||||
|
|
||||||
struct DC {
|
struct DC {
|
||||||
QString versionHW;
|
QString versionHW;
|
||||||
QString versionSW;
|
QString versionSW;
|
||||||
@ -79,6 +86,11 @@ struct PSAInstalled {
|
|||||||
hw.linuxVersion = "N/A";
|
hw.linuxVersion = "N/A";
|
||||||
hw.cpuSerial = "N/A";
|
hw.cpuSerial = "N/A";
|
||||||
|
|
||||||
|
opkg.size = -1;
|
||||||
|
opkg.blob = "N/A";
|
||||||
|
opkg.lastCommit = "N/A";
|
||||||
|
opkg.loadTime = "N/A";
|
||||||
|
|
||||||
dc.versionHW = "N/A";
|
dc.versionHW = "N/A";
|
||||||
dc.versionSW = "N/A";
|
dc.versionSW = "N/A";
|
||||||
dc.gitBlob = "N/A";
|
dc.gitBlob = "N/A";
|
||||||
|
Loading…
Reference in New Issue
Block a user