]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- ugh, it changed "NoSource:" to "Source0:" - fixed
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 22 Jun 2001 16:32:59 +0000 (16:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.94

adapter.awk

index 79ac5dd30f1b2877ee942979db6925761bb8ba65..258b59423e77899773be253f84d3d688609d73c7 100644 (file)
@@ -401,7 +401,7 @@ preamble == 1 {
                $1 = "Epoch:"
 
        # Use %{name} and %{version} in the filenames in "Source:"
-       if (field ~ /source/ || field ~ /patch/) {
+       if (field ~ /^source/ || field ~ /patch/) {
                n = split($2, url, /\//)
                if (url[n] ~ /\.gz$/) {
                        url[n+1] = ".gz" url[n+1]
@@ -439,7 +439,7 @@ preamble == 1 {
                $2 = fixedsub(filename, url[n], $2)
        }
 
-       if (field ~ /source:/)
+       if (field ~ /^source:/)
                $1 = "Source0:" 
 
        if (field ~ /patch:/)
This page took 0.049139 seconds and 4 git commands to generate.