diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-06-26 13:07:27 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-07-03 10:27:28 (GMT) |
commit | 73fe1e98370fa70d2f854683ff69c9e8a3cb98d0 (patch) | |
tree | d23c83d1b229b1e65c244302a57bbcc41572d90c | |
parent | eb839c2ef9539b90bb4b5531066901955889fd49 (diff) |
#7046: Fix removal of activities
-rw-r--r-- | src/sugar/bundle/activitybundle.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py index 6607e96..b126bd3 100644 --- a/src/sugar/bundle/activitybundle.py +++ b/src/sugar/bundle/activitybundle.py @@ -23,8 +23,7 @@ import os import tempfile from sugar.bundle.bundle import Bundle, MalformedBundleException, \ - AlreadyInstalledException, RegistrationException, \ - NotInstalledException + AlreadyInstalledException, RegistrationException, NotInstalledException from sugar import activity from sugar import env @@ -55,6 +54,7 @@ class ActivityBundle(Bundle): self._mime_types = None self._show_launcher = True self._activity_version = 0 + self._installation_time = os.stat(path).st_mtime info_file = self.get_file('activity/activity.info') if info_file is None: @@ -65,7 +65,7 @@ class ActivityBundle(Bundle): if linfo_file: self._parse_linfo(linfo_file) - self.manifest = None #This should be replaced by following function + self.manifest = None # This should be replaced by following function self.read_manifest() def _raw_manifest(self): @@ -226,7 +226,7 @@ class ActivityBundle(Bundle): def get_installation_time(self): """Get a timestamp representing the time at which this activity was installed.""" - return os.stat(self._path).st_mtime + return self._installation_time def get_bundle_id(self): """Get the activity bundle id""" |