packages: pldnotify.awk - handle cgit snapshot urls (libva.spec as example)

arekm arekm at pld-linux.org
Thu Sep 30 10:41:02 CEST 2010


Author: arekm                        Date: Thu Sep 30 08:41:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- handle cgit snapshot urls (libva.spec as example)

---- Files affected:
packages:
   pldnotify.awk (1.89 -> 1.90) 

---- Diffs:

================================================================
Index: packages/pldnotify.awk
diff -u packages/pldnotify.awk:1.89 packages/pldnotify.awk:1.90
--- packages/pldnotify.awk:1.89	Mon Sep 27 16:37:43 2010
+++ packages/pldnotify.awk	Thu Sep 30 10:40:56 2010
@@ -241,6 +241,10 @@
 		d("github tarball url, mungled url to: " url)
 	}
 
+	if (url ~/^(http|https):\/\/cgit\..*\/(.*)\/snapshot\//) {
+		gsub("\/snapshot\/.*", "/", url)
+		d("cgit snapshot tarball url, mungled url to: " url)
+	}
 
 	d("Retrieving: " url)
 	cmd = "wget --user-agent \"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100129 PLD/3.0 (Th) Iceweasel/3.6\" -nv -O - \"" url "\" -t 2 -T 45 --passive-ftp --no-check-certificate > " tmpfile " 2> " tmpfileerr
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pldnotify.awk?r1=1.89&r2=1.90&f=u



More information about the pld-cvs-commit mailing list