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

@ -51,16 +51,16 @@ def package(args, pkgname, carch, force=False, recurse=True):
cross = pmb.build.autodetect.crosscompile(args, apkbuild, carch_buildenv,
suffix)
# Build dependencies first (they may be outdated, even if they exist)
if recurse:
for depend in apkbuild["depends"]:
package(args, depend, carch)
# Skip already built versions
if not force and not pmb.build.is_necessary(args, suffix,
carch_buildenv, apkbuild):
return
# Build dependencies first
if recurse:
for depend in apkbuild["depends"]:
package(args, depend, carch)
# Install build tools and makedepends
pmb.build.init(args, suffix)
if len(apkbuild["makedepends"]):