From 41c89fa5f3693823301d9e2a88cfee817ec0deee Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 28 Oct 2008 10:48:51 +0100 Subject: [PATCH] bugfix with boken addons symlinks bzr revid: chs@tinyerp.com-20081028094851-v7cpms0hnozu0fin --- bin/addons/__init__.py | 2 ++ bin/addons/base/module/module.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 937176ec2e6..c33ab394b27 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -178,6 +178,8 @@ def create_graph(module_list, force=None): module = module[:-4] try: mod_path = get_module_path(module) + if not mod_path: + continue except IOError: continue terp_file = get_module_resource(module, '__terp__.py') diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index e3793a298d6..27f390a3bd1 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -443,7 +443,7 @@ class module(osv.osv): continue terp_file = addons.get_module_resource(name, '__terp__.py') mod_path = addons.get_module_path(name) - if os.path.isdir(mod_path) or os.path.islink(mod_path) or zipfile.is_zipfile(mod_path): + if mod_path and (os.path.isdir(mod_path) or os.path.islink(mod_path) or zipfile.is_zipfile(mod_path)): terp = self.get_module_info(mod_name) if not terp or not terp.get('installable', True): continue