Commit 2b25063a authored by Rafael Monnerat's avatar Rafael Monnerat 👻

Permit ignore default behaviour and install bt5 even newer is present

This introduces flexibility, and permit this method be reused in
different ways.
parent e30ce46d
...@@ -1272,7 +1272,8 @@ class TemplateTool (BaseTool): ...@@ -1272,7 +1272,8 @@ class TemplateTool (BaseTool):
update_catalog=_MARKER, update_catalog=_MARKER,
reinstall=False, reinstall=False,
active_process=None, active_process=None,
force_keep_list=None): force_keep_list=None,
only_newer=True):
""" """
This method download and install a bt5, from a URL. This method download and install a bt5, from a URL.
...@@ -1307,7 +1308,7 @@ class TemplateTool (BaseTool): ...@@ -1307,7 +1308,7 @@ class TemplateTool (BaseTool):
if not reinstall: if not reinstall:
previous_bt5 = self.getInstalledBusinessTemplate(bt_title) previous_bt5 = self.getInstalledBusinessTemplate(bt_title)
if previous_bt5 is not None: if (previous_bt5 is not None) and only_newer:
try: try:
imported_revision = int(imported_bt5.getRevision()) imported_revision = int(imported_bt5.getRevision())
previous_revision = int(previous_bt5.getRevision()) previous_revision = int(previous_bt5.getRevision())
......
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