pmbootstrap challenge: subpackages, list of changed files

* Two new functions for getting a list of files and their timestamps
  in the repo, and diffing that information to get a list of changed
  files: pmb.helpers.repo.files() and pmb.helpers.repo.diff().
  (I've put it in the helpers folder, because it is not specific to
  one chroot, but to all chroots at once.)
* pmbootstrap challenge (new command introduced a few commits back to
  verify, that the contents of an APK file are deterministic) uses
  these functions to a) support subpackages and b) optionally
  output a list of changed files (this gets used in the pmbuilder
  script, which lives outside of this repository).

This commit is progress for #64 again.
This commit is contained in:
Oliver Smith 2017-06-13 21:31:19 +02:00
parent 6cbac208ba
commit 1274b8c26b
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 87 additions and 4 deletions

View file

@ -173,6 +173,10 @@ def arguments():
# Action: challenge
challenge = sub.add_parser("challenge",
help="rebuild a package and diff its contents")
challenge.add_argument("--output-repo-changes", dest="output_repo_changes",
help="pass the path to a file here, to store a list"
" of apk- and APKINDEX-files that have been"
" changed during the build", default=None)
challenge.add_argument("apk")
# Use defaults from the user's config file