Skip to content
Snippets Groups Projects
Unverified Commit 90ca7b63 authored by Oliver Smith's avatar Oliver Smith Committed by GitHub
Browse files

zap_mismatch_bins: Adjust to new apkindex parsing

Without this fix, `pmbootstrap zap -m` fails with:

  File "/home/user/code/pmbootstrap/pmb/__init__.py", line 61, in main
    getattr(frontend, args.action)(args)
  File "/home/user/code/pmbootstrap/pmb/helpers/frontend.py", line 322, in zap
    distfiles=args.distfiles)
  File "/home/user/code/pmbootstrap/pmb/chroot/zap.py", line 54, in zap
    zap_mismatch_bins(args, confirm, dry)
  File "/home/user/code/pmbootstrap/pmb/chroot/zap.py", line 110, in zap_mismatch_bins
    if pkgname != bin_data["pkgname"]:
KeyError: 'pkgname'
parent a3676b1b
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ def zap_mismatch_bins(args, confirm=True, dry=False):
reindex = False
for apkindex_path in glob.glob(args.work + "/packages/*/APKINDEX.tar.gz"):
apkindex = pmb.parse.apkindex.parse(args, apkindex_path)
apkindex = pmb.parse.apkindex.parse(args, apkindex_path, False)
for pkgname, bin_data in apkindex.items():
# Only real packages have apks, provided packages do not exist
# (e.g. "so:libtest.so.1.2")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment