packages: pldnotify.awk - report postfix only when actually done

glen glen at pld-linux.org
Tue Oct 5 12:33:51 CEST 2010


Author: glen                         Date: Tue Oct  5 10:33:51 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- report postfix only when actually done

---- Files affected:
packages:
   pldnotify.awk (1.92 -> 1.93) 

---- Diffs:

================================================================
Index: packages/pldnotify.awk
diff -u packages/pldnotify.awk:1.92 packages/pldnotify.awk:1.93
--- packages/pldnotify.awk:1.92	Tue Oct  5 11:40:14 2010
+++ packages/pldnotify.awk	Tue Oct  5 12:33:45 2010
@@ -181,13 +181,15 @@
 }
 
 # fix link to artificial one that will be recognized rest of this script
-function postfix_link(url, link) {
+function postfix_link(url, link,   oldlink) {
 	oldlink = link
 	if ((url ~/^(http|https):\/\/github.com\//) && (link ~ /.*\/tarball\//)) {
 		gsub(".*\/tarball\/", "", link)
 		link = link ".tar.gz"
 	}
-	d("POST FIXING URL [ " oldlink " ] to [ " link " ]")
+	if (oldlink != link) {
+		d("POST FIXED URL [ " oldlink " ] to [ " link " ]")
+	}
 	return link
 }
 
================================================================

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



More information about the pld-cvs-commit mailing list