When setting name via /usr/bin/pungi, also set the iso basename. Allow API

callers to still set them differently though.
This commit is contained in:
Jesse Keating 2008-10-03 11:35:50 -07:00
parent dcf4d90e69
commit 2fca7f7405
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ if __name__ == '__main__':
def set_config(option, opt_str, value, parser, config):
config.set('default', option.dest, value)
# When setting name, also set the iso_basename.
if option.dest == 'name':
config.set('default', 'iso_basename', value)
# Pulled in from config file to be cli options as part of pykickstart conversion
parser.add_option("--name", dest="name", type="string",