Revert "Drop --develop"

We still need it for backward compatibility
This reverts commit 9b0745baf3c1cc1871d0dc3083458e2c20810a34.

Conflicts:
	slapos/grid/slapgrid.py
parent 5117d288
...@@ -113,6 +113,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple): ...@@ -113,6 +113,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
help="SlapOS configuration file.") help="SlapOS configuration file.")
parser.add_argument("--now", action="store_true", default=False, parser.add_argument("--now", action="store_true", default=False,
help="Launch slapgrid without delay.") help="Launch slapgrid without delay.")
parser.add_argument("--develop", action="store_true", default=False,
help="Launch slapgrid in develop mode. In develop mode, slapgrid-sr "
"ignores .completed file.")
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 "
...@@ -275,6 +278,7 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple): ...@@ -275,6 +278,7 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
develop=option_dict.get('develop', False), develop=option_dict.get('develop', False),
software_release_filter_list=option_dict.get('only_sr', None), software_release_filter_list=option_dict.get('only_sr', None),
computer_partition_filter_list=option_dict.get('only_cp', None), computer_partition_filter_list=option_dict.get('only_cp', None),
develop=option_dict.get('develop', False)
), ),
option_dict]) option_dict])
...@@ -362,6 +366,7 @@ class Slapgrid(object): ...@@ -362,6 +366,7 @@ class Slapgrid(object):
shacache_key_file=None, shacache_key_file=None,
shadir_cert_file=None, shadir_cert_file=None,
shadir_key_file=None, shadir_key_file=None,
develop=False,
software_release_filter_list=None, software_release_filter_list=None,
computer_partition_filter_list=None): computer_partition_filter_list=None):
"""Makes easy initialisation of class parameters""" """Makes easy initialisation of class parameters"""
...@@ -491,8 +496,7 @@ class Slapgrid(object): ...@@ -491,8 +496,7 @@ class Slapgrid(object):
shadir_key_file=self.shadir_key_file) shadir_key_file=self.shadir_key_file)
if state == 'available': if state == 'available':
completed_tag = os.path.join(software_path, '.completed') completed_tag = os.path.join(software_path, '.completed')
if self.develop or \ if self.develop or (not os.path.exists(completed_tag) and \
(not os.path.exists(completed_tag) and \
len(self.software_release_filter_list) == 0) or \ len(self.software_release_filter_list) == 0) or \
url_hash in self.software_release_filter_list: url_hash in self.software_release_filter_list:
try: try:
......
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