]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- strip %{nil} from url
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 14 Aug 2008 21:41:19 +0000 (21:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pldnotify.awk -> 1.59

pldnotify.awk

index ac6b88117dbe43895e6cc2e941157100ef16e90d..775351e8ade65d7dcf27f30222b5239650024e9b 100644 (file)
@@ -385,6 +385,9 @@ function process_data(name,ver,rel,src) {
 # this function checks if substitutions were valid, and if true:
 # processes each URL and tries to get current file list
        for (i in src) {
+               if ( src[i] ~ /%{nil}/ ) {
+                       gsub(/\%\{nil\}/, "", src[i])
+               }
                if ( src[i] !~ /%{.*}/ && src[i] !~ /%[A-Za-z0-9_]/ )  {
                        if ( DEBUG ) print "Source: " src[i]
                        process_source(i,src[i],name,ver)
This page took 0.041708 seconds and 4 git commands to generate.