From 97e6480be160c5bf4ad6ecdd0013cef7b2bc3e53 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Mon, 05 Jan 2009 10:58:45 +0000 Subject: Fix uninstallling of activities that use symlinks #171 --- (limited to 'src/sugar') diff --git a/src/sugar/bundle/bundle.py b/src/sugar/bundle/bundle.py index ed0360d..a1b2686 100644 --- a/src/sugar/bundle/bundle.py +++ b/src/sugar/bundle/bundle.py @@ -191,5 +191,9 @@ class Bundle(object): for name in files: os.remove(os.path.join(root, name)) for name in dirs: - os.rmdir(os.path.join(root, name)) + path = os.path.join(root, name) + if os.path.islink(path): + os.remove(path) + else: + os.rmdir(path) os.rmdir(install_path) -- cgit v0.9.1