From 8e2c032fc8f9550b165bc3f6584a43611a039302 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 15 Nov 2023 13:08:11 +0100 Subject: [PATCH 1/1] Ignore testing, debug and sources medias --- lib/urpmi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/urpmi.sh b/lib/urpmi.sh index 5d72d1c..98e138e 100755 --- a/lib/urpmi.sh +++ b/lib/urpmi.sh @@ -1,6 +1,6 @@ #! /bin/sh -e urpmi.removemedia -a urpmi.addmedia --distrib --all-media --mirrorlist http://mirrors.mageia.org/api/mageia.$MGARELEASE.$ARCH.list -perl -pne 's%(.*testing.*) {\n%\1 {\n ignore\n%i' -i /etc/urpmi/urpmi.cfg +perl -pne 's%(.*(?:testing|debug|sources).*) {\n%\1 {\n ignore\n%i' -i /etc/urpmi/urpmi.cfg #remove distrib-coffee line from mirrors cache #perl -pne 'undef $/; s% +{(?:\n +.(?:country|proximity|longitude|arch|version|zone|latitude).[^,]+,){7}\n +.url.[^,]+distrib-coffee[^,]+,(?:\n +.(?:type|proximity_corrected).[^,]+,){2}\n%%' -i /var/cache/urpmi/mirrors.cache -- 2.41.1