From 35cba4cd42475b8b2da8107fa3ee2305d729a80d Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 9 Jan 2009 14:59:21 +0100 Subject: [PATCH] [FIX] migration: when the module is a symlink, just delete the symlink bzr revid: christophe@tinyerp.com-20090109135921-gg3zas4mcijmrfc7 --- bin/service/web_services.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/service/web_services.py b/bin/service/web_services.py index 590680c6606..abb19fd1a52 100644 --- a/bin/service/web_services.py +++ b/bin/service/web_services.py @@ -398,7 +398,10 @@ GNU Public Licence. mp = addons.get_module_path(module) if mp: if os.path.isdir(mp): - rmtree(os.path.realpath(mp)) + if os.path.islink(mp): + os.unlink(mp) + else: + rmtree(mp) else: os.unlink(mp + '.zip')