From 2c79640c8aa33eeedf48171bed080e3be8cac8fd Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 10 Apr 2021 15:51:30 +0200 Subject: [PATCH] opkg_manager: rework check for system-update script avoids unnecessary debug output --- src/gui/opkg_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 181290d95..abc794bfd 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -779,10 +779,10 @@ bool COPKGManager::hasOpkgSupport() return false; } - if (! find_executable(SYSTEM_UPDATE).empty()) { - dprintf(DEBUG_NORMAL, "[COPKGManager] [%s - %d] " SYSTEM_UPDATE " script found\n", __func__, __LINE__); + if (find_executable(SYSTEM_UPDATE).empty()) + dprintf(DEBUG_NORMAL, "[COPKGManager] [%s - %d] NOTE: " SYSTEM_UPDATE " script not found\n", __func__, __LINE__); + else pm_cmd[CMD_UPGRADE] = SYSTEM_UPDATE; - } #if 0 /* If directory /var/lib/opkg resp. /opt/opkg