SPECS: pldnotify.awk - strip %{nil} from url

arekm arekm at pld-linux.org
Thu Aug 14 23:41:25 CEST 2008


Author: arekm                        Date: Thu Aug 14 21:41:24 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- strip %{nil} from url

---- Files affected:
SPECS:
   pldnotify.awk (1.58 -> 1.59) 

---- Diffs:

================================================================
Index: SPECS/pldnotify.awk
diff -u SPECS/pldnotify.awk:1.58 SPECS/pldnotify.awk:1.59
--- SPECS/pldnotify.awk:1.58	Sun Aug 10 13:06:12 2008
+++ SPECS/pldnotify.awk	Thu Aug 14 23:41:19 2008
@@ -385,6 +385,9 @@
 # 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)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/pldnotify.awk?r1=1.58&r2=1.59&f=u



More information about the pld-cvs-commit mailing list