mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-28 22:06:31 +00:00
Merge pull request #1966 from infinito-nexus/fix/dsk-blender/arch-arm64-package
fix(dsk-blender): install blender on Arch only where Arch carries it
This commit is contained in:
2 files changed
+16
-4
No files matched your search
+4
-1
@@ -28,7 +28,10 @@
|
||||
|
||||
blender:
|
||||
Archlinux:
|
||||
- blender
|
||||
names:
|
||||
- blender
|
||||
architectures:
|
||||
- amd64
|
||||
Debian:
|
||||
- blender
|
||||
centos:
|
||||
|
||||
@@ -6,7 +6,7 @@ from utils.github.variant.pins import draw_pair, row_architectures, row_pairs
|
||||
from utils.github.variant.pools import ARCHITECTURES, DISTROS
|
||||
|
||||
ROLE = "dsk-blender"
|
||||
UNPUBLISHED = ("centos", "arm64")
|
||||
UNPUBLISHED = {"centos", "arch"}
|
||||
|
||||
|
||||
def _drawn() -> set[tuple[str, str]]:
|
||||
@@ -31,9 +31,18 @@ class TestBlenderArchitectures(unittest.TestCase):
|
||||
def test_the_role_keeps_every_architecture(self) -> None:
|
||||
self.assertEqual(row_architectures(ROLE, ARCHITECTURES), ARCHITECTURES)
|
||||
|
||||
def test_the_matrix_never_plans_arch_on_arm64(self) -> None:
|
||||
self.assertNotIn(
|
||||
("arch", "arm64"),
|
||||
_drawn(),
|
||||
"Arch Linux ARM carries no blender package "
|
||||
"(http://mirror.archlinuxarm.org/aarch64/extra/), so pacman aborts "
|
||||
"with 'could not find or read package'",
|
||||
)
|
||||
|
||||
def test_the_matrix_never_plans_centos_on_arm64(self) -> None:
|
||||
self.assertNotIn(
|
||||
UNPUBLISHED,
|
||||
("centos", "arm64"),
|
||||
_drawn(),
|
||||
"centos installs org.blender.Blender from Flathub, which publishes "
|
||||
"it for x86_64 only "
|
||||
@@ -45,7 +54,7 @@ class TestBlenderArchitectures(unittest.TestCase):
|
||||
def test_every_other_distro_still_runs_on_arm64(self) -> None:
|
||||
self.assertEqual(
|
||||
{distro for distro, architecture in _drawn() if architecture == "arm64"},
|
||||
set(DISTROS) - {"centos"},
|
||||
set(DISTROS) - UNPUBLISHED,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user