Fix: crash when running running `zap -m` after `zap -p` (#726)

This commit is contained in:
Pablo Castellano 2017-10-09 21:03:07 +02:00 committed by Oliver Smith
parent 94270a4fa5
commit 42f88c2b32
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def zap(args, confirm=True, packages=False, http=False, mismatch_bins=False, dis
pmb.helpers.run.root(args, ["rm", "-rf", match])
# Delete packages with a different version compared to aports, then re-index
if mismatch_bins:
if mismatch_bins and os.path.exists(args.work + "/packages/"):
binaries(args)
pmb.build.other.index_repo(args)