forked from Mirror/pmbootstrap
pmbootstrap zap -m: delete outdated packages too (#1306)
`-m` is for deleting local compiled packages, for which there is no aport with the same version. Prior to this change, this only worked for packages where no aport exists, or for packages that are newer than the aports. That is, because we used the usual APKINDEX parsing logic, which ignores old packages in the APKINDEX and only returns the one with the highest version (that makes sense during dependency resolution). Changes: * New `pmb.parse.apkindex.parse_blocks()` function that returns a raw list of blocks, instead of the dict with removed duplicates with lower version you get from the usual `.parse()` function. * Renamed each of the zap flags and their descriptions to make clear what they are doing now. ``` short long (old) long (new) -p --packages --pkgs-local -m --mismatch-bins --pkgs-local-mismatch -o, --old-bins --pkgs-online-mismatch ```
This commit is contained in:
parent
3510a4868f
commit
e72afc53fd
4 changed files with 66 additions and 33 deletions
|
@ -324,9 +324,10 @@ def log_distccd(args):
|
|||
|
||||
|
||||
def zap(args):
|
||||
pmb.chroot.zap(args, dry=args.dry, packages=args.packages, http=args.http,
|
||||
mismatch_bins=args.mismatch_bins, old_bins=args.old_bins,
|
||||
distfiles=args.distfiles)
|
||||
pmb.chroot.zap(args, dry=args.dry, http=args.http,
|
||||
distfiles=args.distfiles, pkgs_local=args.pkgs_local,
|
||||
pkgs_local_mismatch=args.pkgs_local_mismatch,
|
||||
pkgs_online_mismatch=args.pkgs_online_mismatch)
|
||||
|
||||
# Don't write the "Done" message
|
||||
pmb.helpers.logging.disable()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue