mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
COPKGManager: use plausible message title
Here we have errors, so we should use plausible titles for message box
This commit is contained in:
@@ -140,7 +140,7 @@ int COPKGManager::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
std::string loc = g_Locale->getText(LOCALE_OPKG_FAILURE_UPGRADE);
|
std::string loc = g_Locale->getText(LOCALE_OPKG_FAILURE_UPGRADE);
|
||||||
char rs[strlen(loc.c_str()) + 20];
|
char rs[strlen(loc.c_str()) + 20];
|
||||||
snprintf(rs, sizeof(rs), loc.c_str(), r);
|
snprintf(rs, sizeof(rs), loc.c_str(), r);
|
||||||
DisplayInfoMessage(rs);
|
DisplayErrorMessage(rs);
|
||||||
} else
|
} else
|
||||||
installed = true;
|
installed = true;
|
||||||
refreshMenu();
|
refreshMenu();
|
||||||
@@ -166,7 +166,7 @@ int COPKGManager::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
std::string err = g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL);
|
std::string err = g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL);
|
||||||
char rs[strlen(err.c_str()) + 20];
|
char rs[strlen(err.c_str()) + 20];
|
||||||
snprintf(rs, sizeof(rs), err.c_str(), r);
|
snprintf(rs, sizeof(rs), err.c_str(), r);
|
||||||
DisplayInfoMessage(rs);
|
DisplayErrorMessage(rs);
|
||||||
} else
|
} else
|
||||||
installed = true;
|
installed = true;
|
||||||
refreshMenu();
|
refreshMenu();
|
||||||
@@ -268,7 +268,7 @@ int COPKGManager::showMenu()
|
|||||||
std::string loc = g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE);
|
std::string loc = g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE);
|
||||||
char rs[strlen(loc.c_str()) + 20];
|
char rs[strlen(loc.c_str()) + 20];
|
||||||
snprintf(rs, sizeof(rs), loc.c_str(), r);
|
snprintf(rs, sizeof(rs), loc.c_str(), r);
|
||||||
DisplayInfoMessage(rs);
|
DisplayErrorMessage(rs);
|
||||||
}
|
}
|
||||||
|
|
||||||
getPkgData(OM_LIST);
|
getPkgData(OM_LIST);
|
||||||
@@ -357,7 +357,7 @@ void COPKGManager::getPkgData(const int pkg_content_id)
|
|||||||
|
|
||||||
FILE *f = popen(pkg_types[pkg_content_id].c_str(), "r");
|
FILE *f = popen(pkg_types[pkg_content_id].c_str(), "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
DisplayInfoMessage("Command failed");
|
DisplayErrorMessage("Command failed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user