opkg_manager: rework check for system-update script

avoids unnecessary debug output
This commit is contained in:
2021-04-10 15:51:30 +02:00
parent 7487a193ee
commit 2c79640c8a

View File

@@ -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