]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- replace PreReq and sortbr in one run
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Dec 2005 15:14:02 +0000 (15:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.240

adapter.awk

index e99b3005c6841d9e2b595641fa90ed2539933b5f..5c1cc09c9e50160e8fc8ff4421d37f1851ca0047 100644 (file)
@@ -109,7 +109,12 @@ function b_makekey(a, b,   s) {
 #   so don't do that.
 # - comments leading the BR/R can not be associated,
 #   so don't adapterize when the BR/R are mixed with comments
-ENVIRON["SKIP_SORTBR"] != 1 && preamble == 1 && /(Build)?Requires/, /(Build)?Requires/ {
+ENVIRON["SKIP_SORTBR"] != 1 && preamble == 1 && /(PreReq|(Build)?Requires)/, /(PreReq|(Build)?Requires)/ {
+       if ($1 ~ /PreReq:/) {
+               sub(/PreReq:/, "Requires:", $1);
+       }
+       format_preamble()
+
        b_idx++;
        l = substr($0, index($0, $2));
        b_ktmp = b_makekey($1, l);
This page took 0.037959 seconds and 4 git commands to generate.