Commit aa4e509a by 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).
1 parent 8f531d96
......@@ -1222,7 +1222,9 @@ class TemplateTool (BaseTool):
business_template_url_dict = {}
for bt in self.getRepositoryBusinessTemplateList():
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),
'revision': bt.getRevision()
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!