pacman-rc.conf shipped with [omarchy] on pkgs.omarchy.org/edge — a leftover from when release candidates published there. Candidates now publish to a dedicated rc channel, so a machine switched to rc with omarchy-refresh-pacman was pairing the rc Arch mirror with edge omarchy packages, and omarchy-version-channel could not name the rc repository at all (an rc install reported 'rc / unknown'). Point the conf at pkgs.omarchy.org/rc, teach omarchy-version-channel the rc repository, and repoint existing rc-channel machines with a migration. The migration only rewrites the shipped pairing (rc mirror + edge [omarchy]); an administrator's deliberate combination is kept.
30 lines
743 B
Bash
Executable File
30 lines
743 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Print the active Omarchy mirror and package channel
|
|
|
|
if grep -q "https://stable-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
|
mirror="stable"
|
|
elif grep -q "https://rc-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
|
mirror="rc"
|
|
elif grep -q "https://mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
|
mirror="edge"
|
|
else
|
|
mirror="unknown"
|
|
fi
|
|
|
|
if grep -q "https://pkgs.omarchy.org/stable/" /etc/pacman.conf; then
|
|
pkgs="stable"
|
|
elif grep -q "https://pkgs.omarchy.org/rc/" /etc/pacman.conf; then
|
|
pkgs="rc"
|
|
elif grep -q "https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
|
|
pkgs="edge"
|
|
else
|
|
pkgs="unknown"
|
|
fi
|
|
|
|
if [[ $mirror == $pkgs ]]; then
|
|
echo $mirror
|
|
else
|
|
echo "$mirror / $pkgs"
|
|
fi
|