use tweak in vsys for f29; add hostname to runtime
[build.git] / spec2make.py
index 94dedd8..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,"")
@@ -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: