pmb.run.qemu.install_depends: fix with v20.05 (MR 2009)

Don't try to install the recently split up packages if the pmaports
branch is based on Alpine 3.12.

Fixes: 61845c93 ("pmb.run.qemu.install_depends: add new depends (MR 2007)")
This commit is contained in:
Oliver Smith 2021-01-02 11:19:03 +01:00
parent 8e3196a42a
commit 6a4f012bf9
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 9 additions and 0 deletions

View File

@ -246,6 +246,15 @@ def install_depends(args, arch):
"qemu-ui-opengl",
"qemu-ui-sdl",
]
# QEMU packaging isn't split up as much in 3.12
channel_cfg = pmb.config.pmaports.read_config_channel(args)
if channel_cfg["branch_aports"] == "3.12-stable":
depends.remove("qemu-hw-display-virtio-gpu")
depends.remove("qemu-hw-display-virtio-gpu-pci")
depends.remove("qemu-hw-display-virtio-vga")
depends.remove("qemu-ui-opengl")
pmb.chroot.apk.install(args, depends)