remove nice adjust before upgrade calculation

This commit is contained in:
shenyafeng 2022-10-13 16:25:20 +08:00
parent f7a500ca7d
commit d7fede3aa7
1 changed files with 3 additions and 2 deletions

View File

@ -3133,13 +3133,14 @@ def run(options, # type: Options
False, _("Apt returned an error, exiting"))
if cache._depcache.broken_count > 0:
print(_("Cache has broken packages, exiting"))
#print(_("Cache has broken packages, exiting"))
logging.error(_("Cache has broken packages, exiting"))
return UnattendedUpgradesResult(
False, _("Cache has broken packages, exiting"))
# FIXME: make this into a ContextManager
# be nice when calculating the upgrade as its pretty CPU intensive
'''
old_priority = os.nice(0)
try:
# Check that we will be able to restore the priority
@ -3150,7 +3151,7 @@ def run(options, # type: Options
pass
else:
raise
'''
#auto_removable = get_auto_removable(cache)