pmbootstrap-meow/pmb/parse
Oliver Smith 28a0e10e56
pmb.chroot.apk.installed(): use apk's internal database
...instead of running apk every time to get the list of installed
packages and their versions. The internal package database from
apk has the same format, as the extracted APKINDEX file (except
that it has more key-value pairs, which we ignore/do not need
right now). So the APKINDEX code has been extended to parse both
tar-packed APKINDEX files and regular text files in the APKINDEX
format.

This is required for #108, for a better detection of outdated
packages (because the internal package database  saves the
package's timestamp, too). A nice benefit is, that this is faster
than calling apk every time and it doesn't fill up the log as much.

I've also used this improved function for determining the apk
version (for the outdated version check), and I've deleted
pmb.parse.other.package_split(), as it is not needed anymore.
2017-06-27 17:56:15 +02:00
..
__init__.py Hello, there! 2017-05-26 22:08:45 +02:00
apkbuild.py WIP #64: "lazy reproducible builds" 2017-06-05 03:58:45 +02:00
apkindex.py pmb.chroot.apk.installed(): use apk's internal database 2017-06-27 17:56:15 +02:00
arch.py Prepare for aarch64 host support, fix typo in arch mapping 2017-06-27 00:28:11 +02:00
arguments.py Update min apk version/add more apk version checks 2017-06-23 17:04:49 +02:00
binfmt_info.py Official support for aarch64 (#84) 2017-06-14 19:10:21 +02:00
deviceinfo.py Hello, there! 2017-05-26 22:08:45 +02:00