Commit c5c276b0 authored by Aurel's avatar Aurel

test empty too for version restriction too


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12018 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4f86c6f
...@@ -4536,7 +4536,7 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4536,7 +4536,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
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) \
or (version_restriction is not None and or (version_restriction not in (None, '') and
(not self.portal_templates.compareVersionStrings(installed_bt.getVersion(), version_restriction)))): (not self.portal_templates.compareVersionStrings(installed_bt.getVersion(), version_restriction)))):
missing_dep_list.append((dependency, version_restriction or '')) missing_dep_list.append((dependency, version_restriction or ''))
if len(missing_dep_list) != 0: if len(missing_dep_list) != 0:
......
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