1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-24 21:15:10 +03:00

Fix various build issues (fix #189, fix #341) (#345)

Changes:
* Removed the apkindex_files cache. That particular cache caused
  bug #189 and didn't bring any real-world performance improvements
  (tested 3x with that cache and 3x without, no significant speed
  difference). I decided to remove it instead of keeping it/adding
  even more code to resolve the bug.
* Fix the check for already built packages: always use the architecture,
  that the package should be built for instead of the architecture of
  the build environment (e.g. use armhf, even when building a noarch
  package in the x86_64 chroot). This partially resolves #341.
* Make pmb.chroot.apk.install_is_necessary() more robust: If the binary
  package is missing, although it should be there, print a warning and
  build it with force.
This commit is contained in:
Oliver Smith 2017-08-09 17:59:21 +00:00 committed by GitHub
parent 035e3807b5
commit 21c09b3b3c
4 changed files with 14 additions and 9 deletions

View file

@ -241,7 +241,6 @@ def arguments():
# Add a caching dict (caches parsing of files etc. for the current session)
setattr(args, "cache", {"apkindex": {},
"apkindex_files": {},
"apkbuild": {},
"apk_min_version_checked": [],
"apk_repository_list_updated": [],