diff options
author | Dan Winship <dwinship@redhat.com> | 2007-09-25 18:50:11 (GMT) |
---|---|---|
committer | Dan Winship <dwinship@redhat.com> | 2007-09-25 18:50:11 (GMT) |
commit | 70940b85738bfdd297e18ee259a949fcda71e3e9 (patch) | |
tree | 1881db74897d06de7bb97c5825e217c125c38c56 /sugar | |
parent | a449430500b28c67a9d528f8f595d592d7250e35 (diff) |
fix _uninstall()
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/bundle/bundle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sugar/bundle/bundle.py b/sugar/bundle/bundle.py index a2e9076..75b4b38 100644 --- a/sugar/bundle/bundle.py +++ b/sugar/bundle/bundle.py @@ -127,7 +127,7 @@ class Bundle: zip.write(filename, os.path.join(base_dir, filename)) zip.close() - def remove(self): + def _uninstall(self): ext = os.path.splitext(self._path)[1] if self._unpacked: if not os.path.isdir(self._path) or ext != self._unzipped_extension: @@ -137,7 +137,7 @@ class Bundle: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) - os.rmdir(root) + os.rmdir(self._path) else: if not os.path.isfile(self._path) or ext != self._zipped_extension: raise InvalidPathException |