Keep rc on its own mirror but use the edge package repo
This commit is contained in:
@@ -12,9 +12,10 @@ if [[ $OMARCHY_PATH != "/usr/share/omarchy" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# omarchy-dev / omarchy-settings-dev are only shipped from the edge mirror, so
|
# omarchy-dev / omarchy-settings-dev are only shipped from the edge package
|
||||||
# their presence alone means edge. omarchy / omarchy-settings come from either
|
# repo, so their presence alone means edge. omarchy / omarchy-settings come
|
||||||
# the stable or rc mirror, distinguished by omarchy-version-channel.
|
# from either the stable or rc mirror, distinguished by omarchy-version-channel
|
||||||
|
# (which reports the mirror as its first token).
|
||||||
if pacman -Q omarchy-dev omarchy-settings-dev >/dev/null 2>&1; then
|
if pacman -Q omarchy-dev omarchy-settings-dev >/dev/null 2>&1; then
|
||||||
echo edge
|
echo edge
|
||||||
elif pacman -Q omarchy omarchy-settings >/dev/null 2>&1; then
|
elif pacman -Q omarchy omarchy-settings >/dev/null 2>&1; then
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ case "$channel" in
|
|||||||
;;
|
;;
|
||||||
rc)
|
rc)
|
||||||
mirror_server='https://rc-mirror.omarchy.org/$repo/os/$arch'
|
mirror_server='https://rc-mirror.omarchy.org/$repo/os/$arch'
|
||||||
package_server='https://pkgs.omarchy.org/rc/$arch'
|
package_server='https://pkgs.omarchy.org/edge/$arch'
|
||||||
;;
|
;;
|
||||||
edge)
|
edge)
|
||||||
mirror_server='https://mirror.omarchy.org/$repo/os/$arch'
|
mirror_server='https://mirror.omarchy.org/$repo/os/$arch'
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ if grep -q "https://pkgs.omarchy.org/stable/" /etc/pacman.conf; then
|
|||||||
pkgs="stable"
|
pkgs="stable"
|
||||||
elif grep -q "https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
|
elif grep -q "https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
|
||||||
pkgs="edge"
|
pkgs="edge"
|
||||||
elif grep -q "https://pkgs.omarchy.org/rc/" /etc/pacman.conf; then
|
|
||||||
pkgs="rc"
|
|
||||||
else
|
else
|
||||||
pkgs="unknown"
|
pkgs="unknown"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user