]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- %useradd/%groupadd may not be continued with backslash
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 2 Oct 2005 18:22:24 +0000 (18:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.190

adapter.awk

index 5247d01e0bdc3d24801d56ffe1992e5138142d28..55e2e76f844cdc78161dbc5e803b5fc74504fe37 100644 (file)
@@ -416,7 +416,15 @@ preamble == 1 {
 ###########
 /^%pre/, (/^%[a-z]+$/ && !/^%pre/) {
        preamble = 0
+
+       # %useradd and %groupadd may not be wrapped
+       if (/%(useradd|groupadd).*\\$/) {
+               a = $0; getline;
+               sub(/^[\s\t]*/, "");
+               $0 = substr(a, 1, length(a) - 1) $0;
+       }
 }
+
 /^%post/, (/^%[a-z]+$/ && !/^%post/) {
        preamble = 0
 }
This page took 0.18882 seconds and 4 git commands to generate.