增加错误项

This commit is contained in:
wangsong 2022-06-20 20:50:28 +08:00
parent d293d1f885
commit bd77c9d111
1 changed files with 3 additions and 2 deletions

View File

@ -346,6 +346,7 @@ class UpdateManager():
except SystemError:
self.simulate_mode.thread_install([pkg_name])
logging.error("Check: mark %s to upgrade Failed...",pkg_name)
raise UpdateBaseError(ERROR_NOT_CONFIGPKG_DEPENDENCIES)
else:
logging.info("Check: ConfigPkgs(%s:%s) No need to upgrade...",self.GROUPS_PKG_NAME,pkg_json.installed.source_version)
else:
@ -357,8 +358,8 @@ class UpdateManager():
need_upgrade = True
except SystemError:
self.simulate_mode.thread_install([pkg_name])
logging.error("Check: mark %s to upgrade Failed...",pkg_name)
raise UpdateBaseError(ERROR_NOT_GROUPS_CONFIG)
logging.error("Check: mark %s to install Failed...",pkg_name)
raise UpdateBaseError(ERROR_NOT_CONFIGPKG_DEPENDENCIES)
else:
raise UpdateBaseError(ERROR_NOT_GROUPS_CONFIG)