remove nice adjust before upgrade calculation
This commit is contained in:
parent
f7a500ca7d
commit
d7fede3aa7
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue