From: Raphaƫl Gertz Date: Wed, 15 Nov 2023 12:08:11 +0000 (+0100) Subject: Ignore testing, debug and sources medias X-Git-Tag: 0.2 X-Git-Url: https://git.rapsys.eu/distcook/commitdiff_plain/8e2c032fc8f9550b165bc3f6584a43611a039302 Ignore testing, debug and sources medias --- 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