opkg_manager: rework check for system-update script

avoids unnecessary debug output


Origin commit data
------------------
Branch: ni/coolstream
Commit: ec0ccc3f9e
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-04-10 (Sat, 10 Apr 2021)



------------------
This commit was generated by Migit
This commit is contained in:
2021-04-10 22:19:43 +02:00
committed by vanhofen
parent 9cedb1e0c1
commit 69541759da

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