Refuse the China region off x86 until #13690 renders ARM pacman

Integration only.
This commit is contained in:
ZacharyZhang-NY committed 2026-10-12 02:57:07 -04:00
1 parent 84450ffc19
commit 1dbe97d9b7
3 files changed
+15 -1

No files matched your search

+6
View File
@@ -32,6 +32,12 @@ if [[ $channel != "stable" && $channel != "rc" && $channel != "edge" ]]; then
exit 1
fi
# The cn profile renders x86 pacman only (omarchy #13690).
if [[ $1 == "cn" && $(omarchy-hw-platform) != "x86" ]]; then
echo "The China region needs an x86 machine; $(omarchy-hw-platform) has no China profile yet" >&2
exit 1
fi
if [[ $1 == "cn" ]]; then
# Upgrade first: the keyring install below syncs new databases.
omarchy-update-pacman -Syu --noconfirm