]> Raphaƫl G. Git Repositories - distcook/blob - lib/urpmi.sh
5d72d1cf8fd5b0d653889df4f35857f78b49cb87
[distcook] / lib / urpmi.sh
1 #! /bin/sh -e
2 urpmi.removemedia -a
3 urpmi.addmedia --distrib --all-media --mirrorlist http://mirrors.mageia.org/api/mageia.$MGARELEASE.$ARCH.list
4 perl -pne 's%(.*testing.*) {\n%\1 {\n ignore\n%i' -i /etc/urpmi/urpmi.cfg
5 #remove distrib-coffee line from mirrors cache
6 #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