Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJameson Quinn <jameson.quinn@gmail.com>2008-07-23 15:55:42 (GMT)
committer Jameson Quinn <jameson.quinn@gmail.com>2008-07-23 15:55:42 (GMT)
commit48597a672f12acc53f49380f39049a7f304a970f (patch)
tree69f7708d57385cfbd457cea9882ad969bc48de66 /src
parent62af4ae9bbbbce808e9f5500eebc00a799868a3c (diff)
bug #7534: need_upgrade should always be True
Diffstat (limited to 'src')
-rw-r--r--src/sugar/bundle/activitybundle.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py
index f6c0242..2c235d8 100644
--- a/src/sugar/bundle/activitybundle.py
+++ b/src/sugar/bundle/activitybundle.py
@@ -275,11 +275,13 @@ class ActivityBundle(Bundle):
return False
def need_upgrade(self):
- act = activity.get_registry().get_activity(self._bundle_id)
- if act is None or act.version != self._activity_version:
- return True
- else:
- return False
+ """Returns True if installing this activity bundle is meaningful -
+ that is, if an identical version of this activity is not
+ already installed.
+
+ Until we have cryptographic hashes to check identity, returns
+ True always. See http://dev.laptop.org/ticket/7534."""
+ return True
def unpack(self, install_dir, strict_manifest=False):
self._unzip(install_dir)