]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- avoid %%{setup} loop
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 26 Jul 2006 19:15:30 +0000 (19:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- %patch -> %patch0

Changed files:
    adapter.awk -> 1.321

adapter.awk

index d17a225abc7503b16c3a6d4aab099819373c3cbe..a5ca0070a4f5681e8d8841fcac4b061fb60a977f 100644 (file)
@@ -318,7 +318,7 @@ function b_makekey(a, b,    s) {
                sub(/^%setup/, "%setup -q")
        }
 
-       if (/^%setup/) {
+       if (/^%setup/ && name != "setup") {
                $0 = fixedsub(name, "%{name}", $0);
                $0 = fixedsub(version, "%{version}", $0);
                if (_beta) {
@@ -338,6 +338,7 @@ function b_makekey(a, b,    s) {
        if (/^%setup/ && /-n %{name}-%{version}( |$)/) {
                $0 = fixedsub(" -n %{name}-%{version}", "", $0)
        }
+    sub("^%patch ", "%patch0 ");
 
        # invalid in %prep
        sub("^rm -rf \$RPM_BUILD_ROOT.*", "");
This page took 0.046997 seconds and 4 git commands to generate.