opkg_manager: supplement to ensure update of package list after menu update

Origin commit data
------------------
Commit: a7b7eb02e6
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-05-14 (Fri, 14 May 2021)
This commit is contained in:
2021-05-14 20:59:53 +02:00
committed by vanhofen
parent b34589bd06
commit 6408820a45

View File

@@ -484,7 +484,7 @@ void COPKGManager::updateMenu()
bool upgradesAvailable = false;
getPkgData(CMD_LIST_INSTALLED);
getPkgData(CMD_LIST_UPGRADEABLE);
initPackagePatternLists();
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); ++it) {
/* this should no longer trigger at all */
if (!isPermittedPackage(it->second.name))
@@ -647,7 +647,7 @@ int COPKGManager::doUpdate()
DisplayErrorMessage(msg.c_str());
return r;
}
initPackagePatternLists();
return 0;
}