fix
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 10 Jun 2011 12:19:07 +0000 (14:19 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 10 Jun 2011 12:19:07 +0000 (14:19 +0200)
spec2make.py

index 94dedd8..ccf2cf8 100755 (executable)
@@ -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: