From: Thierry Parmentelat Date: Mon, 24 Mar 2014 14:55:32 +0000 (+0100) Subject: support for .tar.xz sources X-Git-Tag: 5.3.2~10 X-Git-Url: http://git.onelab.eu/?p=build.git;a=commitdiff_plain;h=705f47aec7e28f9f5762393c0ac59a6f106e5bf2 support for .tar.xz sources --- diff --git a/spec2make.py b/spec2make.py index ccf2cf84..a2bc7bff 100755 --- a/spec2make.py +++ b/spec2make.py @@ -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,"")