From 44c282013026d0fbc46a047951f4e5ae9c888e7a Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 2 Feb 2024 08:18:13 +0100 Subject: [PATCH] Make sure to lookup only "apism", not the new "apism-tools" --- worker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.cpp b/worker.cpp index 5d31489..85ab721 100644 --- a/worker.cpp +++ b/worker.cpp @@ -1030,7 +1030,7 @@ QString Worker::getATBUpdateToolYoctoVersion() { QString Worker::getAPISMYoctoVersion() { if (QFile::exists("/var/lib/opkg/status")) { - QString const cmd = QString("echo -n $(cat /var/lib/opkg/status | grep -A1 apism | tail -n 1 | cut -d':' -f2 | cut -d' ' -f2)"); + QString const cmd = QString("echo -n $(cat /var/lib/opkg/status | grep -A1 -e apism[[:space:]]*$ | tail -n 1 | cut -d':' -f2 | cut -d' ' -f2)"); Command c("bash"); if (c.execute("/tmp", QStringList() << "-c" << cmd)) { return c.getCommandResult(); // 1.4.1.0-r4