]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- process also pri=2 when migrating to 0.20 config
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 2 Jan 2006 13:29:19 +0000 (13:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poldek.spec -> 1.197.2.66

poldek.spec

index 348c76adf8d04f878f52264eaf0457b1c66a8c17..02e9d185a6790a479ad05e9a0236f94658b65a83 100644 (file)
@@ -239,11 +239,18 @@ if [ -f /etc/poldek.conf.rpmsave ]; then
        auto = "yes";
        autoup = "yes";
        type = "pdir";
+       pri = "";
 
        if (sub(",noauto", "", name)) {
                auto = "no";
        }
 
+       # process pri=\d+
+       if (match(name, /,pri=[0-9]+/)) {
+               pri = substr(name, RSTART + 5, RLENGTH - 5);
+               name = substr(name, 1, RSTART - 1) substr(name, RSTART + RLENGTH);
+       }
+
        # skip ac sources. already in new config.
        if (name !~ /^ac(-(ready|test|supported|updates-(general|security)))?$/) {
                print "";
@@ -253,6 +260,9 @@ if [ -f /etc/poldek.conf.rpmsave ]; then
                print "path = " path;
                print "auto = " auto;
                print "autoup = " autoup;
+               if (pri) {
+                       print "pri = " pri;
+               }
        }
 
        }' < /etc/poldek.conf.rpmsave >> /etc/poldek/source.conf
This page took 0.035278 seconds and 4 git commands to generate.