Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <silbe@activitycentral.com>2011-09-04 20:52:03 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-09-07 15:05:47 (GMT)
commit69d7d6e675659a52152f4fe3692614ed63a4be21 (patch)
tree78ce05556fd66a9e306241a5babe3b5b218089d6
parentb644c5e097b14810336da85c9669559d55fd7f60 (diff)
Only consider the exact same version of a bundle as installed (fixes SL#3081)
49232e55 introduced a typo that caused a bundle to be considered installed even if it contained an older version than what was actually installed. This is turn triggered the "upgrade" logic in jarabe.journal.misc.resume(). The result was that activities got downgraded without asking the user for confirmation. Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/jarabe/model/bundleregistry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index 63308bb..26e719f 100644
--- a/src/jarabe/model/bundleregistry.py
+++ b/src/jarabe/model/bundleregistry.py
@@ -360,7 +360,7 @@ class BundleRegistry(gobject.GObject):
for installed_bundle in self._bundles:
if bundle.get_bundle_id() == installed_bundle.get_bundle_id() and \
- NormalizedVersion(bundle.get_activity_version()) <= \
+ NormalizedVersion(bundle.get_activity_version()) == \
NormalizedVersion(installed_bundle.get_activity_version()):
return True
return False