X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pkgs.py;h=d9155f4dfa94f6845238e99203f1f296a5872400;hb=efc8519c4f9395f13d0f443802c8eca18db56741;hp=e8e867bd0d6394f5f57a0f8497aa5df5b2eb1a12;hpb=d09caeb6feaba80058544610a250263e73d7b511;p=build.git diff --git a/pkgs.py b/pkgs.py index e8e867bd..d9155f4d 100755 --- a/pkgs.py +++ b/pkgs.py @@ -36,13 +36,16 @@ import re default_arch = 'x86_64' known_archs = ['i386', 'i686', 'x86_64'] -default_fcdistro = 'f31' +default_fcdistro = 'f33' known_fcdistros = [ 'centos5', 'centos6', # oldies but we have references to that in the pkgs files - 'f8', 'f10', 'f12', 'f14', 'f16', 'f18', 'f20', 'f21', 'f22', 'f23', 'f24', - # these ones are still relevant - 'f25', 'f27', 'f29', 'f31', + 'f8', 'f10', 'f12', 'f14', 'f16', 'f18', + 'f20', 'f21', 'f22', 'f23', 'f24', 'f25', 'f27', + # these ones are still relevant; + # f32 is mentioned to be able to use create-vms with that distro + # as we're running into issues to build a minimal f33 from a f29 host + 'f29', 'f31', 'f32', 'f33', # scientific linux 'sl6', # debians @@ -117,7 +120,7 @@ class PkgsParser: re_qualified += r'\s*' re_qualified += r'(?P{re_ident}[0-9]+)'.format(re_ident=re_ident) re_qualified += r'\s*' - m_qualified = re.compile(r'\A{}\Z'.format(re_qualified)) + m_qualified = re.compile(r'\A{re_qualified}\Z'.format(re_qualified=re_qualified)) re_old = '[a-z]+[+-][a-z]+[0-9]+' m_old = re.compile(r'\A{}\Z'.format(re_old)) @@ -242,13 +245,13 @@ def main (): sys.exit(1) keyword = args[0] inputs = args[1:] - if not options.arch in known_archs: + if options.arch not in known_archs: print('Unsupported arch', options.arch, file=stderr) parser.print_help(file=stderr) sys.exit(1) if options.arch == 'i686': options.arch = 'i386' - if not options.fcdistro in known_fcdistros: + if options.fcdistro not in known_fcdistros: print('Unsupported fcdistro', options.fcdistro, file=stderr) parser.print_help(file=stderr) sys.exit(1)