support for .tar.xz sources
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 24 Mar 2014 14:55:32 +0000 (15:55 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 24 Mar 2014 14:55:32 +0000 (15:55 +0100)
spec2make.py

index ccf2cf8..a2bc7bf 100755 (executable)
@@ -32,7 +32,7 @@ def main ():
     for (fullsource,_,__) in specobj.sources:
         #print '###fullsource=',fullsource
         print "%s.tarballs += SOURCES/%s" %(package_name,os.path.basename(fullsource))
-        for suffix in [".tar.gz", ".tgz", ".tar.bz2", ] : 
+        for suffix in [".tar.gz", ".tgz", ".tar.bz2", ".tar.xz" ] : 
             #print "# trying %s"%suffix
             if fullsource.endswith(suffix):
                 sourcename=fullsource.replace(suffix,"")