Commit aa4e509a authored by Vincent Pelletier's avatar Vincent Pelletier

Do not strip ".bt5" extension when it's not there.

Fixes installing BTs from a "directory"-style BT repository (like,
genbt5list called on a bare checkout).
parent 8f531d96
...@@ -1222,7 +1222,9 @@ class TemplateTool (BaseTool): ...@@ -1222,7 +1222,9 @@ class TemplateTool (BaseTool):
business_template_url_dict = {} business_template_url_dict = {}
for bt in self.getRepositoryBusinessTemplateList(): for bt in self.getRepositoryBusinessTemplateList():
url, name = self.decodeRepositoryBusinessTemplateUid(bt.getUid()) url, name = self.decodeRepositoryBusinessTemplateUid(bt.getUid())
business_template_url_dict[name[:-4]] = { if name.endswith('.bt5'):
name = name[:-4]
business_template_url_dict[name] = {
'url': '%s/%s' % (url, name), 'url': '%s/%s' % (url, name),
'revision': bt.getRevision() 'revision': bt.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