forked from Mirror/pmbootstrap
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:
parent
9e945423d9
commit
f1ab344f09
3 changed files with 25 additions and 14 deletions
|
@ -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"]):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue