From 50a3e71c27b0acc22e47bdbaf431505b34554c71 Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@member.fsf.org>
Date: Mon, 6 Apr 2009 14:21:43 +0000
Subject: If user updates an activity installed... #707
---
src/jarabe/model/bundleregistry.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index d23d5cb..42d39b0 100644
a
|
b
|
class BundleRegistry(gobject.GObject): |
210 | 210 | ''.join(traceback.format_exception(*sys.exc_info())))) |
211 | 211 | return None |
212 | 212 | |
213 | | if self.is_installed(bundle): |
| 213 | if self.get_bundle(bundle.get_bundle_id()): |
214 | 214 | return None |
215 | 215 | |
216 | 216 | self._bundles.append(bundle) |
… |
… |
class BundleRegistry(gobject.GObject): |
321 | 321 | |
322 | 322 | def install(self, bundle): |
323 | 323 | activities_path = env.get_user_activities_path() |
324 | | if self.is_installed(bundle): |
| 324 | |
| 325 | if self.get_bundle(bundle.get_bundle_id()): |
325 | 326 | raise AlreadyInstalledException |
326 | 327 | |
327 | 328 | for installed_bundle in self._bundles: |