Fix #818: Clean up updated repo list after zapping chroots (#867)

This commit is contained in:
clayton craft 2017-11-03 19:43:06 -07:00 committed by Oliver Smith
parent 2987294ea6
commit cacb05e7e6
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ def zap(args, confirm=True, packages=False, http=False, mismatch_bins=False,
if not confirm or pmb.helpers.cli.confirm(args, "Remove " + match + "?"):
pmb.helpers.run.root(args, ["rm", "-rf", match])
# Chroots were zapped, so no repo lists exist anymore
args.cache["apk_repository_list_updated"].clear()
def zap_mismatch_bins(args, confirm=True):
if not os.path.exists(args.work + "/packages/"):