diff options
author | C. Scott Ananian <cscott@laptop.org> | 2008-08-14 06:49:45 (GMT) |
---|---|---|
committer | C. Scott Ananian <cscott@laptop.org> | 2008-08-19 19:46:36 (GMT) |
commit | 1bd1b6c81e6a8352f5552fb70da40d21768485be (patch) | |
tree | e3a662196a1112dd1e84ef1bb8a8d8ef9d6f1575 /src/sugar/bundle/contentbundle.py | |
parent | 5ba227ff85d1c4ccd415c8aa4e1e2b0c743f346f (diff) |
Trac #7733: fix severe performance regression when creating ActivityBundle.
Diffstat (limited to 'src/sugar/bundle/contentbundle.py')
-rw-r--r-- | src/sugar/bundle/contentbundle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar/bundle/contentbundle.py b/src/sugar/bundle/contentbundle.py index f99c13a..389fd70 100644 --- a/src/sugar/bundle/contentbundle.py +++ b/src/sugar/bundle/contentbundle.py @@ -195,7 +195,7 @@ class ContentBundle(Bundle): return "file://" + urllib.pathname2url(self.get_start_path()) def is_installed(self): - if self._unpacked: + if self._zip_file is None: return True elif os.path.isdir(self.get_root_dir()): return True @@ -207,7 +207,7 @@ class ContentBundle(Bundle): self._run_indexer() def uninstall(self): - if self._unpacked: + if self._zip_file is None: if not self.is_installed(): raise NotInstalledException install_dir = self._path |