packages: pldnotify.awk - recognize tar.xz

arekm arekm at pld-linux.org
Mon Jun 7 22:45:49 CEST 2010


Author: arekm                        Date: Mon Jun  7 20:45:48 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- recognize tar.xz

---- Files affected:
packages:
   pldnotify.awk (1.84 -> 1.85) 

---- Diffs:

================================================================
Index: packages/pldnotify.awk
diff -u packages/pldnotify.awk:1.84 packages/pldnotify.awk:1.85
--- packages/pldnotify.awk:1.84	Thu Apr  8 14:07:36 2010
+++ packages/pldnotify.awk	Mon Jun  7 22:45:43 2010
@@ -413,7 +413,7 @@
 		# in /something/ looking for newer directory
 		dir=substr(dir,1,index(dir,version)-1)
 		sub("[^/]*$","",dir)
-		sub("(\.tar\.(bz|bz2|gz)|zip)$","",filename)
+		sub("(\.tar\.(bz|bz2|gz|xz)|zip)$","",filename)
 	}
 
 	d("Will check a directory: " dir)
@@ -465,7 +465,7 @@
 				d("Version: " newfilename)
 				if (newfilename ~ /\.(asc|sig|pkg|bin|binary|built)$/) continue
 				# strip ending (happens when in directiory name as version matching mode)
-				sub("(\.tar\.(bz|bz2|gz)|zip)$","",newfilename)
+				sub("(\.tar\.(bz|bz2|gz|xz)|zip)$","",newfilename)
 				if (NUMERIC) {
 					if ( compare_ver_dec(version, newfilename)==1 ) {
 						d("Yes, there is new one")
================================================================

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



More information about the pld-cvs-commit mailing list