]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- don't be so greedy sorting %verify attrs
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 14 Apr 2005 18:54:36 +0000 (18:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.151

adapter.awk

index c9a254487d36fd9e342f2c18df4fdcfe13b4dbf2..6d69ee5216f287df33821a3b8930455accdd4292 100644 (file)
@@ -733,7 +733,7 @@ function use_files_macros(  i, n, t, a)
        gsub("%attr\(0", "%attr(")
 
        # sort %verify attrs
-       if (match($0, /%verify\(not (.*)\)/)) {
+       if (match($0, /%verify\(not([^)]+)\)/)) {
                t = substr($0, RSTART, RLENGTH)
                gsub(/^%verify\(not |\)$/, "", t)
                n = split(t, a, / /)
@@ -745,7 +745,7 @@ function use_files_macros(  i, n, t, a)
                }
                s = s ")"
 
-               gsub(/%verify\(not .*\)/, s)
+               gsub(/%verify\(not[^)]+\)/, s)
        }
 }
 
This page took 0.027696 seconds and 4 git commands to generate.