pmb/aportgen/busybox_static.py: alpine mirrordir (MR 1949)
On branch stable, we would use Alpine's mirrordir "v3.11" for example.
This commit is contained in:
parent
f9f9e19a4c
commit
178931f992
|
@ -42,6 +42,8 @@ def generate(args, pkgname):
|
||||||
output_return=True)
|
output_return=True)
|
||||||
|
|
||||||
# Write the APKBUILD
|
# Write the APKBUILD
|
||||||
|
channel_cfg = pmb.config.pmaports.read_config_channel(args)
|
||||||
|
mirrordir = channel_cfg["mirrordir_alpine"]
|
||||||
pmb.helpers.run.user(args, ["mkdir", "-p", args.work + "/aportgen"])
|
pmb.helpers.run.user(args, ["mkdir", "-p", args.work + "/aportgen"])
|
||||||
with open(args.work + "/aportgen/APKBUILD", "w", encoding="utf-8") as handle:
|
with open(args.work + "/aportgen/APKBUILD", "w", encoding="utf-8") as handle:
|
||||||
apkbuild = f"""\
|
apkbuild = f"""\
|
||||||
|
@ -68,7 +70,7 @@ def generate(args, pkgname):
|
||||||
_target="$(arch_to_hostspec $_arch)"
|
_target="$(arch_to_hostspec $_arch)"
|
||||||
|
|
||||||
source="
|
source="
|
||||||
busybox-static-$pkgver-r$pkgrel-$_arch.apk::$_mirror/edge/main/$_arch/busybox-static-$pkgver-r$pkgrel.apk
|
busybox-static-$pkgver-r$pkgrel-$_arch.apk::$_mirror/{mirrordir}/main/$_arch/busybox-static-$pkgver-r$pkgrel.apk
|
||||||
"
|
"
|
||||||
|
|
||||||
package() {{
|
package() {{
|
||||||
|
|
Loading…
Reference in New Issue