]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- use fixedsub for %setup macros usage (to prevent "%{ver}.%{ver2}" match "%{ver...
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Dec 2005 14:11:12 +0000 (14:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.236

adapter.awk

index bc033c7f9754b740c8c55955289691cf382b7a5e..8d7fa1b9be4eb5a108f006aa7b0459365c0f1d88 100644 (file)
@@ -273,21 +273,21 @@ preamble == 1 {
        }
 
        if (/^%setup/) {
-               gsub(name, "%{name}");
-               gsub(version, "%{version}");
+               $0 = fixedsub(name, "%{name}", $0);
+               $0 = fixedsub(version, "%{version}", $0);
                if (_beta) {
-                       gsub(_beta, "%{_beta}");
+                       $0 = fixedsub(_beta, "%{_beta}", $0);
                }
                if (_rc) {
-                       gsub(_rc, "%{_rc}");
+                       $0 = fixedsub(_rc, "%{_rc}", $0);
                }
                if (_snap) {
-                       gsub(_snap, "%{_snap}");
+                       $0 = fixedsub(_snap, "%{_snap}", $0);
                }
        }
 
        if (/^%setup/ && /-n %{name}-%{version}( |$)/) {
-               sub(/ -n %{name}-%{version}/, "")
+               $0 = fixedsub(" -n %{name}-%{version}", "", $0)
        }
 
        # invalid in %prep
This page took 0.047814 seconds and 4 git commands to generate.