mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
opkg_manager: add magic string to reset error flags
... to be used by sytem-update script
This commit is contained in:
committed by
svenhoefer
parent
3956f06d3a
commit
8a6194a047
@@ -933,6 +933,13 @@ void COPKGManager::handleShellOutput(string* cur_line, int* res, bool* ok)
|
|||||||
*ok = false;
|
*ok = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/* hack */
|
||||||
|
if (line.find("system-update: err_reset") != string::npos) {
|
||||||
|
*res = OM_SUCCESS;
|
||||||
|
*ok = true;
|
||||||
|
has_err = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
//unknown error
|
//unknown error
|
||||||
if (*ok){
|
if (*ok){
|
||||||
dprintf(DEBUG_DEBUG, "[COPKGManager] [%s - %d] ERROR: unhandled error %s\n", __func__, __LINE__, line.c_str());
|
dprintf(DEBUG_DEBUG, "[COPKGManager] [%s - %d] ERROR: unhandled error %s\n", __func__, __LINE__, line.c_str());
|
||||||
|
Reference in New Issue
Block a user