Merge pull request #9214 from omacom/rc-channel-pacman
Point the rc channel at the rc package repository
This commit is contained in:
@@ -14,6 +14,8 @@ 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
|
||||
|
||||
@@ -26,4 +26,4 @@ Include = /etc/pacman.d/mirrorlist
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[omarchy]
|
||||
Server = https://pkgs.omarchy.org/edge/$arch
|
||||
Server = https://pkgs.omarchy.org/rc/$arch
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
echo "Point rc-channel installs at the rc package repository"
|
||||
|
||||
# pacman-rc.conf shipped with [omarchy] pointing at the edge repository, a
|
||||
# leftover from when release candidates published there. Candidates now publish
|
||||
# to the dedicated rc channel, so a machine on the rc mirror was taking its
|
||||
# omarchy packages from edge. Repoint only a conf that still carries the
|
||||
# shipped pairing: an administrator who chose another combination keeps it.
|
||||
if grep -q "https://rc-mirror.omarchy.org/" /etc/pacman.d/mirrorlist &&
|
||||
grep -q "^Server = https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
|
||||
sudo sed -i "s|^Server = https://pkgs.omarchy.org/edge/|Server = https://pkgs.omarchy.org/rc/|" /etc/pacman.conf
|
||||
echo "Switched the [omarchy] repository to the rc channel to match this machine's rc mirror."
|
||||
fi
|
||||
Reference in New Issue
Block a user