apk.installed(): Retuns all packages and versions now

pmb.chroot.apk.installed() used to return only the explicitly installed
packages. This is not good enough for the initfs check functions (and
especially for the "lazy reproducible builds", from which branch this
commit was cherry picked).

This commit introduces more noise for the logfile - if this becomes
a problem, raise your voice in the issues tracker and we'll do something
about it.

(This commit also changes minor code styling in other files, I did
not run autopep8 last time, because flake8 didn't complain...)
This commit is contained in:
Oliver Smith 2017-06-09 18:01:39 +02:00
parent 4b903b7232
commit 32ad868cdc
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 62 additions and 13 deletions

View file

@ -79,10 +79,10 @@ def main():
pmb.build.ccache_stats(args, args.arch)
elif args.action == "log":
pmb.helpers.run.user(args, ["tail", "-f", args.log,
"-n", args.lines], log=False)
"-n", args.lines], log=False)
elif args.action == "log_distccd":
pmb.chroot.user(args, ["tail", "-f", "/home/user/distccd.log",
"-n", args.lines], log=False)
"-n", args.lines], log=False)
elif args.action == "zap":
pmb.chroot.zap(args)
else: