From 2fca7f7405edf00c2201e0e14b0b6daa0b4dc94b Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 3 Oct 2008 11:35:50 -0700 Subject: [PATCH] When setting name via /usr/bin/pungi, also set the iso basename. Allow API callers to still set them differently though. --- src/bin/pungi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/pungi.py b/src/bin/pungi.py index 1dc750f2..1fced5bc 100755 --- a/src/bin/pungi.py +++ b/src/bin/pungi.py @@ -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",