]> Raphaël G. Git Repositories - distcook/commitdiff
Ignore testing, debug and sources medias 0.2
authorRaphaël Gertz <git@rapsys.eu>
Wed, 15 Nov 2023 12:08:11 +0000 (13:08 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 15 Nov 2023 12:08:11 +0000 (13:08 +0100)
lib/urpmi.sh

index 5d72d1cf8fd5b0d653889df4f35857f78b49cb87..98e138ec830883ad2a9ddc4ce722e4f9334efb37 100755 (executable)
@@ -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