Only allow alphanumeric in flavor.
This commit is contained in:
parent
33a2ec8508
commit
a9c124e7e0
4
pungi
4
pungi
@ -174,6 +174,10 @@ if __name__ == '__main__':
|
||||
if not opts.config:
|
||||
parser.print_help()
|
||||
sys.exit(0)
|
||||
|
||||
if not config.get('default', 'flavor').isalnum():
|
||||
print >> sys.stderr, "Flavor must be alphanumeric."
|
||||
sys.exit(1)
|
||||
|
||||
if opts.do_gather or opts.do_createrepo or opts.do_buildinstall or opts.do_createiso:
|
||||
opts.do_all = False
|
||||
|
Loading…
Reference in New Issue
Block a user