Only allow alphanumeric in flavor.

This commit is contained in:
Jesse Keating 2007-12-03 11:56:03 -05:00 committed by Jesse Keating
parent 33a2ec8508
commit a9c124e7e0
1 changed files with 4 additions and 0 deletions

4
pungi
View File

@ -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