pmbootstrap/pmb/helpers
Oliver Smith e72afc53fd
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
  ```
2018-03-10 12:08:02 +00:00
..
__init__.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
cli.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
devices.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
file.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
frontend.py pmbootstrap zap -m: delete outdated packages too (#1306) 2018-03-10 12:08:02 +00:00
git.py Remove timestamp based rebuilds (#1174) 2018-01-28 23:27:33 +00:00
http.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
logging.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
mount.py pmbootstrap build --src: override source for any package (#1210) 2018-02-19 22:04:01 +00:00
other.py Add a check for binfmt_misc (#1236) 2018-02-17 20:41:54 +00:00
pkgrel_bump.py Index parser: support multiple package providers (#1202) 2018-02-20 19:52:28 +00:00
repo.py Only download APKINDEX for relevant architectures (#1201) 2018-03-04 13:44:27 +00:00
run.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
ui.py Show UI selection ordered by name, `none` remains at the beginning (#1092) 2018-01-07 03:55:27 +00:00