Commit a9076ca0 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Added option --all to proceed as in develop

parent 8abdb6c9
...@@ -116,6 +116,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple): ...@@ -116,6 +116,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
parser.add_argument("--develop", action="store_true", default=False, parser.add_argument("--develop", action="store_true", default=False,
help="Launch slapgrid in develop mode. In develop mode, slapgrid " help="Launch slapgrid in develop mode. In develop mode, slapgrid "
"will process all Softare Releases and/or Computer Partitions.") "will process all Softare Releases and/or Computer Partitions.")
parser.add_argument("--all", action="store_true", default=False,
help="Launch slapgrid to process all Softare Releases"
"and/or Computer Partitions.")
parser.add_argument("--only_sr", parser.add_argument("--only_sr",
help="Force the update of a single software release (use url hash)," help="Force the update of a single software release (use url hash),"
"event if is already installed. This option will make all others " "event if is already installed. This option will make all others "
...@@ -163,6 +166,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple): ...@@ -163,6 +166,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
if not mandatory_parameter in option_dict: if not mandatory_parameter in option_dict:
missing_mandatory_parameter_list.append(mandatory_parameter) missing_mandatory_parameter_list.append(mandatory_parameter)
if 'all' in option_dict:
option_dict.set('develop',True)
repository_required = False repository_required = False
if 'key_file' in option_dict: if 'key_file' in option_dict:
repository_required = True repository_required = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment