remove --ondemant_script

:(
This commit is contained in:
Erik Gomez
2015-03-26 20:41:37 -05:00
parent 5253c5ec9d
commit 511d7f596c

View File

@@ -460,13 +460,6 @@ def main():
script_options = optparse.OptionGroup(
p, 'Script Options',
'All scripts are read and embedded into the pkginfo.')
script_options.add_option(
'--ondemand_script', '--ondemand-script',
metavar='SCRIPT_PATH',
help=('Path to an OnDemand script to be '
'run as root. '
'Always removed one finished. There are no receipts.')
)
script_options.add_option(
'--installcheck_script', '--installcheck-script',
metavar='SCRIPT_PATH',
@@ -795,7 +788,6 @@ def main():
not options.file and
not options.nopkg and
not options.installer_environment and
not options.ondemand_script and
not options.installcheck_script and
not options.uninstallcheck_script and
not options.preinstall_script and
@@ -1042,10 +1034,6 @@ def main():
# remove minimum_os_version as we don't include it for --file only
catinfo.pop('minimum_os_version')
if options.ondemand_script:
scriptstring = readfile(options.ondemand_script)
if scriptstring:
catinfo['ondemand_script'] = scriptstring
if options.installcheck_script:
scriptstring = readfile(options.installcheck_script)
if scriptstring: