mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
opkg_manager: move visual update check into own methode
This commit is contained in:
@@ -553,15 +553,23 @@ void COPKGManager::refreshMenu() {
|
|||||||
updateMenu();
|
updateMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
int COPKGManager::showMenu()
|
|
||||||
|
void COPKGManager::showUpdateCheckResult()
|
||||||
|
{
|
||||||
|
checkUpdates();
|
||||||
|
|
||||||
|
if (num_updates)
|
||||||
{
|
{
|
||||||
installed = false;
|
|
||||||
if (checkUpdates()){
|
|
||||||
std::string update_msg = to_string(num_updates) + " ";
|
std::string update_msg = to_string(num_updates) + " ";
|
||||||
update_msg += g_Locale->getText(LOCALE_OPKG_MESSAGEBOX_UPDATES_AVAILABLE);
|
update_msg += g_Locale->getText(LOCALE_OPKG_MESSAGEBOX_UPDATES_AVAILABLE);
|
||||||
DisplayInfoMessage(update_msg.c_str());
|
DisplayInfoMessage(update_msg.c_str());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int COPKGManager::showMenu()
|
||||||
|
{
|
||||||
|
installed = false;
|
||||||
|
showUpdateCheckResult();
|
||||||
#if 0
|
#if 0
|
||||||
getPkgData(OM_LIST);
|
getPkgData(OM_LIST);
|
||||||
getPkgData(OM_LIST_UPGRADEABLE);
|
getPkgData(OM_LIST_UPGRADEABLE);
|
||||||
|
@@ -107,6 +107,7 @@ class COPKGManager : public CMenuTarget
|
|||||||
std::string getBlankPkgName(const std::string& line);
|
std::string getBlankPkgName(const std::string& line);
|
||||||
bool isInstalled(const std::string& pkg_name);
|
bool isInstalled(const std::string& pkg_name);
|
||||||
bool isUpgradable(const std::string& pkg_name);
|
bool isUpgradable(const std::string& pkg_name);
|
||||||
|
void showUpdateCheckResult();
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Gets an info from opkg command info or status from a package via keywords as std::string
|
* Gets an info from opkg command info or status from a package via keywords as std::string
|
||||||
|
Reference in New Issue
Block a user