From 48597a672f12acc53f49380f39049a7f304a970f Mon Sep 17 00:00:00 2001 From: Jameson Quinn Date: Wed, 23 Jul 2008 09:55:42 -0600 Subject: [PATCH] bug #7534: need_upgrade should always be True --- src/sugar/bundle/activitybundle.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py index f6c02427..2c235d88 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)