getDCVersionPreparedForDownload(): implemented.
This commit is contained in:
parent
d7e709d997
commit
b35e6812aa
11
worker.cpp
11
worker.cpp
@ -1063,6 +1063,17 @@ QString Worker::getAPISMYoctoInstallationStatus() {
|
|||||||
return "N/A";
|
return "N/A";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Worker::getDCVersionPreparedForDownload(QString const &filename) {
|
||||||
|
if (QFile::exists(filename)) { // <customer-repo/etc/dc/dc2c.bin>
|
||||||
|
QString const cmd = QString("strings %1 | grep -e DC2[Cc]\\. | head -n1").arg(filename);
|
||||||
|
Command c("bash");
|
||||||
|
if (c.execute("/tmp", QStringList() << "-c" << cmd)) {
|
||||||
|
return c.getCommandResult(); // DC2c.04.42 14.09.2023
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "N/A";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QString Worker::getATBQTVersion() const {
|
QString Worker::getATBQTVersion() const {
|
||||||
QString const cmd = QString("echo -n $(/opt/app/ATBAPP/ATBQT -v | head -n 2 | cut -d':' -f2)");
|
QString const cmd = QString("echo -n $(/opt/app/ATBAPP/ATBQT -v | head -n 2 | cut -d':' -f2)");
|
||||||
|
Loading…
Reference in New Issue
Block a user