Commit fc3d420b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a mysterious piece of code which prevents checking dependencies correctly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17276 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4c5c02d6
...@@ -4765,13 +4765,13 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4765,13 +4765,13 @@ Business Template is a set of definitions, such as skins, portal types and categ
dependency_list = self.getDependencyList() dependency_list = self.getDependencyList()
if len(dependency_list)!=0: if len(dependency_list)!=0:
for dependency_couple in dependency_list: for dependency_couple in dependency_list:
dependency_couple_list = dependency_couple.split(' ', 1) dependency_couple_list = dependency_couple.strip().split(' ', 1)
dependency = dependency_couple_list[0] dependency = dependency_couple_list[0]
if dependency in (None, ''): if dependency in (None, ''):
continue continue
version_restriction = None version_restriction = None
if len(dependency_couple_list) > 1: if len(dependency_couple_list) > 1:
version_restriction = dependency_couple_list[1][1:-1] version_restriction = dependency_couple_list[1]
installed_bt = self.portal_templates.getInstalledBusinessTemplate(dependency) installed_bt = self.portal_templates.getInstalledBusinessTemplate(dependency)
if (not self.portal_templates.IsOneProviderInstalled(dependency)) \ if (not self.portal_templates.IsOneProviderInstalled(dependency)) \
and ((installed_bt is None) \ and ((installed_bt is None) \
......
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