mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
COPKGManager: remove useless err_msg var, replaced by tmp_str
This commit is contained in:
@@ -427,7 +427,7 @@ int COPKGManager::doUpdate()
|
||||
{
|
||||
int r = execCmd(pkg_types[OM_UPDATE]);
|
||||
if (r == -1) {
|
||||
string msg = string(g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE)) + "\n" + err_msg;
|
||||
string msg = string(g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE));
|
||||
DisplayErrorMessage(msg.c_str());
|
||||
return r;
|
||||
}
|
||||
@@ -675,7 +675,6 @@ int COPKGManager::execCmd(const char *cmdstr, bool verbose, bool acknowledge)
|
||||
int res = 0;
|
||||
has_err = false;
|
||||
tmp_str.clear();
|
||||
err_msg = "";
|
||||
bool ok = true;
|
||||
if (verbose) {
|
||||
//create CShellWindow object
|
||||
|
@@ -96,7 +96,6 @@ class COPKGManager : public CMenuTarget
|
||||
err_list = errlist;
|
||||
};
|
||||
void showErr(int* res);
|
||||
std::string err_msg;
|
||||
|
||||
int execCmd(const char* cmdstr, bool verbose = false, bool acknowledge = false);
|
||||
int execCmd(std::string cmdstr, bool verbose = false, bool acknowledge = false) {
|
||||
|
Reference in New Issue
Block a user