Fix #68: properly update the device chroot in the install step

* build all dependencies, that have a newer version
* upgrade all packages inside the chroot
This commit is contained in:
Oliver Smith 2017-06-08 17:54:53 +02:00
parent 9e945423d9
commit f1ab344f09
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 25 additions and 14 deletions

View file

@ -82,12 +82,17 @@ def install(args, show_flash_msg=True):
pmb.chroot.apk.install(args, pmb.config.install_native_packages,
build=False)
# Install all packages to device rootfs chroot
# Explicitly call build on the install packages, to re-build it or any
# dependency, in case the version increased
logging.info("*** (2/5) CREATE DEVICE ROOTFS (" + args.device + ") ***")
install_packages = pmb.config.install_device_packages + ["device-" + args.device]
for pkgname in install_packages:
pmb.build.package(args, pkgname, args.deviceinfo["arch"])
# Install all packages to device rootfs chroot
suffix = "rootfs_" + args.device
pmb.chroot.apk.install(args, pmb.config.install_device_packages +
["device-" + args.device], suffix)
pmb.chroot.apk.update(args, suffix)
pmb.chroot.apk.install(args, install_packages, suffix)
pmb.chroot.apk.upgrade(args, suffix)
set_user_password(args)
# Partition and fill image/sdcard