]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- separate commaseparated (build)requires lists
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 7 Sep 2005 18:20:28 +0000 (18:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.181

adapter.awk

index 7dea47b7ea046dca075ddeaa1ff6232ba5f43460..b17305839f009b3893a8fffe25161d2c210e10c0 100644 (file)
@@ -488,6 +488,16 @@ preamble == 1 {
                $(NF + 1) = " # FIXME add Requires(scriptlet) -adapter.awk"
        }
 
+       # split (build)requires on commas
+       if (field ~ /requires:/ && $2 ~ /,/) {
+               l = substr($0, index($0, $2));
+               n = split(l, p, / *, */);
+               for (i in p) {
+                       printf("%s\t%s\n", $1, p[i]);
+               }
+               next;
+       }
+
        if (field ~ /packager:|distribution:|docdir:|prefix:/)
                next
 
This page took 0.06142 seconds and 4 git commands to generate.