Install latest built version of the package instead of APKBUILD version

This commit is contained in:
Daniele Debernardi 2018-11-22 00:48:45 +01:00
parent 840b603953
commit cce91758a1
No known key found for this signature in database
GPG Key ID: 5782FCF5DAE9AF60
1 changed files with 2 additions and 3 deletions

View File

@ -168,10 +168,9 @@ def replace_aports_packages_with_path(args, packages, suffix, arch):
for package in packages:
aport = pmb.build.find_aport(args, package, False)
if aport:
apkbuild = pmb.parse.apkbuild(args, aport + "/APKBUILD")
data_repo = pmb.parse.apkindex.package(args, package, arch, False)
apk_path = ("/mnt/pmbootstrap-packages/" + arch + "/" +
package + "-" + apkbuild["pkgver"] + "-r" +
apkbuild["pkgrel"] + ".apk")
package + "-" + data_repo["version"] + ".apk")
if os.path.exists(args.work + "/chroot_" + suffix + apk_path):
package = apk_path
ret.append(package)