Skip to content

Commit 4efa286

Browse files
committed
get minimum module versions from store url
1 parent df9e62c commit 4efa286

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cravat/admin_util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ def read_system_conf_template():
15481548

15491549
def ready_resolution_console():
15501550
if len(check_required_updates()) > 0:
1551-
input('Some module updates are required. Press enter to install.')
1551+
print('Installing required module updates')
15521552
install_required_updates()
15531553
rs = system_ready()
15541554
if rs:
@@ -1849,12 +1849,12 @@ def check_required_updates():
18491849
try:
18501850
sys_conf = get_system_conf()
18511851
path_builder = su.PathBuilder(sys_conf["store_url"], "url")
1852-
url = path_builder.required_updates()
1852+
url = path_builder.minimum_module_versions()
18531853
r = requests.get(url, timeout=(3,None))
18541854
r.raise_for_status()
1855+
required = r.json()
18551856
except:
1856-
pass
1857-
required = constants.required_updates
1857+
required = constants.minimum_module_versions
18581858
need_update = []
18591859
mic.update_local()
18601860
for mname in required:

cravat/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,6 @@
454454
cannonical_chroms = ["chr" + str(n) for n in range(1, 23)] + ["chrX", "chrY"]
455455
default_postaggregator_names = ["tagsampler", "casecontrol", "varmeta", "vcfinfo"]
456456

457-
required_updates = {
457+
minimum_module_versions = {
458458
'vcfreporter': '3.3.0', # Flask changes
459459
}

cravat/store_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def download_counts(self):
102102
def featured_module_list(self):
103103
return self._build_path(self.base(), "store.json")
104104

105-
def required_updates(self):
106-
return self._build_path(self.bae(), 'required-updates.json')
105+
def minimum_module_versions(self):
106+
return self._build_path(self.base(), 'minimum-module-versions.json')
107107

108108
def blank_stage_handler(*args, **kwargs):
109109
pass

0 commit comments

Comments
 (0)