Fix leftover options from --leave-files name change

This commit is contained in:
Timothy Sutton 2013-09-24 19:53:07 -04:00
parent 065e60f6f9
commit ca5d10895d

View file

@ -141,8 +141,8 @@ product, ie. 'BootCamp-041-1234'. Uses the current directory if this option is o
status("Changing output directory to %s to work around an issue \
when running the installer out of 'system32'." % output_dir)
if opts.leave_files and not opts.install:
sys.exit("The --leave-files option is only useful when used with --install option!")
if opts.keep_files and not opts.install:
sys.exit("The --keep-files option is only useful when used with --install option!")
if opts.model:
if opts.install:
@ -283,7 +283,7 @@ when running the installer out of 'system32'." % output_dir)
if opts.install:
status("Installing Boot Camp...")
installBootcamp(findBootcampMSI(landing_dir))
if not opts.leave_files:
if not opts.keep_files:
subprocess.call(['cmd', '/c', 'rmdir', '/q', '/s', landing_dir])
# clean up the temp dir always