diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 793e536ce..81b068d9f 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -288,7 +288,7 @@ bool COPKGManager::hasUpdates() for (map::iterator it = pkg_map.begin(); it != pkg_map.end(); it++){ if (it->second.upgradable){ - dprintf(DEBUG_INFO, "[neutrino opkg] Update packages available...\n"); + dprintf(DEBUG_INFO, "[COPKGManager] [%s - %d] Update packages available...\n", __func__, __LINE__); ret = true; } } @@ -366,16 +366,15 @@ int COPKGManager::showMenu() bool COPKGManager::hasOpkgSupport() { - string deps[] = {"/etc/opkg/opkg.conf", "/var/lib/opkg", ""}; + string deps[] = {"/etc/opkg/opkg.conf", "/var/lib/opkg"}; if (find_executable(OPKG_CL).empty()) { - dprintf(DEBUG_INFO, "[neutrino opkg] did not find " OPKG_CL " executable\n"); + dprintf(DEBUG_NORMAL, "[COPKGManager] [%s - %d]" OPKG_CL " executable not found\n", __func__, __LINE__); return false; } - for (size_t i = 0; !deps[i].empty(); i++) { - dprintf(DEBUG_INFO, "[neutrino opkg] check if %s is available...\n", deps[i].c_str()); + for(size_t i=0; i