bugfix with boken addons symlinks

bzr revid: chs@tinyerp.com-20081028094851-v7cpms0hnozu0fin
This commit is contained in:
Christophe Simonis
2008-10-28 10:48:51 +01:00
parent 430c32855e
commit 41c89fa5f3
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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')
+1 -1
View File
@@ -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