From 612df7e0a49788423de56b8370161670d525b41d Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sun, 1 May 2022 10:10:59 +0800 Subject: [PATCH] feat: added xbps support --- cli/mirrors.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/mirrors.sh b/cli/mirrors.sh index 9686560..eaf11b3 100755 --- a/cli/mirrors.sh +++ b/cli/mirrors.sh @@ -44,6 +44,10 @@ case "$PM" in END { print buffer } ' /etc/pacman.d/mirrorlist.bak | sudo tee /etc/pacman.d/mirrorlist >/dev/null ;; + xbps) + mkdir -p /etc/xbps.d + cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ + sed -i 's|https://alpha.de.repo.voidlinux.org|https://mirrors.tuna.tsinghua.edu.cn/voidlinux|g' /etc/xbps.d/*-repository-*.conf esac