关闭默认的修复破损包

This commit is contained in:
wangsong 2021-11-26 17:29:23 +08:00
parent aac651e25d
commit ad07f3c7d5
2 changed files with 6 additions and 6 deletions

View File

@ -73,10 +73,10 @@ class MyCache(SystemUpdater.Core.DistUpgradeCache.MyCache):
self.all_changes = {}
self.all_news = {}
# on broken packages, try to fix via saveDistUpgrade()
if self._depcache.broken_count > 0:
self.saveDistUpgrade()
assert (self._depcache.broken_count == 0
and self._depcache.del_count == 0)
# if self._depcache.broken_count > 0:
# self.saveDistUpgrade()
# assert (self._depcache.broken_count == 0
# and self._depcache.del_count == 0)
self.launchpad = None
def _dpkgJournalDirty(self):

View File

@ -289,8 +289,8 @@ class InstallBackendAptdaemon(InstallBackend):
currenty_bytes, total_bytes, \
current_cps)
else:
# if self.action == self.ACTION_UPDATE:
# return
if self.action == self.ACTION_UPDATE:
return
logging.info("Other Action:current_items = %d, total_items = %d, currenty_bytes = %s, total_bytes = %s, current_cps = %s/s",\
current_items, total_items, \
humanize_size(currenty_bytes), humanize_size(total_bytes),\