Disable openvswitch for rc26 build
[build.git] / pkgs.py
diff --git a/pkgs.py b/pkgs.py
index d31e57d..cccd7ea 100755 (executable)
--- a/pkgs.py
+++ b/pkgs.py
@@ -1,8 +1,5 @@
 #!/usr/bin/python
 #
-# $Id$
-# $URL$
-# 
 # This is a replacement for the formerly bash-written function pl_parsePkgs () 
 # 
 # Usage: $0  [-a arch] default_arch keyword fcdistro pldistro pkgs-file[..s]
@@ -37,7 +34,7 @@ import re
 default_arch='x86_64'
 known_arch = ['i386','x86_64']
 default_fcdistro='f12'
-known_fcdistros = [ 'centos5','centos6','f8', 'f9','f10','f11','f12', 'f13' ]
+known_fcdistros = [ 'centos5','centos6','f8', 'f9','f10','f11','f12', 'f13', 'f14', 'f16', 'sl6']
 default_pldistro='onelab'
 
 known_keywords=['groupname', 'groupdesc', 'kexclude', 'package', 'group', 'precious', 'junk', 'mirror', ]
@@ -110,7 +107,7 @@ class PkgsParser:
                 if self.m_comment.match(line) or self.m_blank.match(line):
                     continue
                 try:
-                    [lefts,rights] = line.split(':')
+                    [lefts,rights] = line.split(':',1)
                     for left in lefts.split():
                         ########## single ident
                         if self.m_ident.match(left):
@@ -211,9 +208,10 @@ def main ():
 
     pkgs = PkgsParser (options.arch,options.fcdistro,options.pldistro,keyword,inputs,options)
 
-    pkgs.run()
-
-    sys.exit(0)
+    if pkgs.run():
+        sys.exit(0)
+    else:
+        sys.exit(1)
 
 if __name__ == '__main__':
     if main():