packages: pldnotify.awk - recognize http://github.com/Dieterbe/uzbl/tarball...
arekm
arekm at pld-linux.org
Wed Mar 3 11:50:47 CET 2010
Author: arekm Date: Wed Mar 3 10:50:47 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- recognize http://github.com/Dieterbe/uzbl/tarball/xyz urls
---- Files affected:
packages:
pldnotify.awk (1.80 -> 1.81)
---- Diffs:
================================================================
Index: packages/pldnotify.awk
diff -u packages/pldnotify.awk:1.80 packages/pldnotify.awk:1.81
--- packages/pldnotify.awk:1.80 Mon Feb 22 19:17:02 2010
+++ packages/pldnotify.awk Wed Mar 3 11:50:42 2010
@@ -216,6 +216,11 @@
if (DEBUG) print "edge launchpad url, mungled url to: " url
}
+ if (url ~/^(http|https):\/\/github.com\/.*\/(.*)\/tarball\//) {
+ gsub("\/tarball\/.*", "/downloads", url)
+ if (DEBUG) print "github tarball url, mungled url to: " url
+ }
+
if (DEBUG) print "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.80&r2=1.81&f=u
More information about the pld-cvs-commit
mailing list