pmbootstrap/pmb/chroot
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
apk.py pmb.chroot.apk.installed(): use apk's internal database 2017-06-27 17:56:15 +02:00
apk_static.py Update min apk version/add more apk version checks 2017-06-23 17:04:49 +02:00
binfmt.py Hello, there! 2017-05-26 22:08:45 +02:00
distccd.py Official support for aarch64 (#84) 2017-06-14 19:10:21 +02:00
init.py Add support for the binary repository, inactive by default (#64) 2017-06-20 20:13:05 +02:00
initfs.py Close #69: add 'pmbootstrap initfs' and improve initfs workflow 2017-06-09 19:22:25 +02:00
initfs_hooks.py Close #69: add 'pmbootstrap initfs' and improve initfs workflow 2017-06-09 19:22:25 +02:00
mount.py Hello, there! 2017-05-26 22:08:45 +02:00
other.py Add testcases for pmbootstrap challenge. 2017-06-19 20:07:51 +02:00
root.py Revert "Fixed menuconfig with new async runner" 2017-06-02 21:33:29 +02:00
shutdown.py Fix #83: Properly handle left over files when closing the cryptsetup device 2017-06-13 01:34:20 +02:00
user.py Revert "Fixed menuconfig with new async runner" 2017-06-02 21:33:29 +02:00
zap.py Add testcases for pmbootstrap challenge. 2017-06-19 20:07:51 +02:00