Commit 17a0a275 authored by Vincent Pelletier's avatar Vincent Pelletier

TemplateTool: Remove useless parentheses.

parent 3b45cd05
Pipeline #9707 passed with stage
in 0 seconds
...@@ -1450,7 +1450,7 @@ class TemplateTool (BaseTool): ...@@ -1450,7 +1450,7 @@ class TemplateTool (BaseTool):
if bt.title in keep_bt5_id_set: if bt.title in keep_bt5_id_set:
continue continue
append("Uninstall business template %s" % bt.title) append("Uninstall business template %s" % bt.title)
if not(dry_run): if not dry_run:
# XXX Here is missing parameters to really remove stuff # XXX Here is missing parameters to really remove stuff
bt.uninstall() bt.uninstall()
update_bt5_list = self.getRepositoryBusinessTemplateList( update_bt5_list = self.getRepositoryBusinessTemplateList(
...@@ -1463,7 +1463,7 @@ class TemplateTool (BaseTool): ...@@ -1463,7 +1463,7 @@ class TemplateTool (BaseTool):
continue continue
append("Update %s business template in state %s%s" % \ append("Update %s business template in state %s%s" % \
(bt5.title, bt5.version_state, (reinstall and ' (reinstall)') or '')) (bt5.title, bt5.version_state, (reinstall and ' (reinstall)') or ''))
if not(dry_run): if not dry_run:
bt5_url = "%s/%s" % (bt5.repository, bt5.title) bt5_url = "%s/%s" % (bt5.repository, bt5.title)
self.updateBusinessTemplateFromUrl(bt5_url, reinstall=reinstall, self.updateBusinessTemplateFromUrl(bt5_url, reinstall=reinstall,
update_catalog=update_catalog) update_catalog=update_catalog)
......
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