pmbootstrap/pmb/challenge
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 Add testcases for pmbootstrap challenge. 2017-06-19 20:07:51 +02:00
apk.py Move challenge code to own folder (#64) 2017-06-17 17:42:28 +02:00
apk_file.py Add testcases for pmbootstrap challenge. 2017-06-19 20:07:51 +02:00
apkindex.py Implement challenge for APKINDEX.tar.gz (part of #64) 2017-06-18 01:45:41 +02:00
build.py pmb.chroot.apk.installed(): use apk's internal database 2017-06-27 17:56:15 +02:00
frontend.py Move challenge code to own folder (#64) 2017-06-17 17:42:28 +02:00