X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=spec2make.py;h=a2bc7bff018ca8506c5516f7910a297b42b80ec1;hb=febc6d77dc41b0e4811f1ae11372be6ce6d74ad0;hp=94dedd8b886f764f7e0e6f1f72fb7f768b5fbfa0;hpb=0a907f3452272a210fff811ef2d57f442ba43d34;p=build.git diff --git a/spec2make.py b/spec2make.py index 94dedd8b..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,"") @@ -48,7 +48,7 @@ def main (): print "%s.srpm := SRPMS/%s-%s-%s.src.rpm"%(package_name, name, version, release) target = options.target - whitelist=options.whitelist.split(',') + whitelist=[ x for x in options.whitelist.split(',') if x] # Print non-empty packages counter=0 for package in specobj.packages: