Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-10-08 18:35:18 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-10-08 18:35:18 (GMT)
commit21fc882a11981af8758ff232d3cb419abb249d12 (patch)
tree351bde96b06881073523291424ac37a931b17b9c /src
parentd8b49945780f0373e39bd4e1bc238212f4adc47b (diff)
And some more
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/model/bundleregistry.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index 600a108..279f1a9 100644
--- a/src/jarabe/model/bundleregistry.py
+++ b/src/jarabe/model/bundleregistry.py
@@ -17,6 +17,7 @@
import os
import logging
import traceback
+import sys
import gobject
import cjson
@@ -302,11 +303,11 @@ class BundleRegistry(gobject.GObject):
if not force and act.version != bundle.get_activity_version():
logging.warning('Not uninstalling, different bundle present')
return
- elif not act.path.startswith(env.get_user_activities_path()):
+ elif not act.get_path().startswith(env.get_user_activities_path()):
logging.warning('Not uninstalling system activity')
return
- install_path = act.path
+ install_path = act.get_path()
bundle.uninstall(install_path, force)
@@ -317,12 +318,13 @@ class BundleRegistry(gobject.GObject):
act = self.get_bundle(bundle.get_bundle_id())
if act is None:
logging.warning('Activity not installed')
- elif act.path.startswith(env.get_user_activities_path()):
+ elif act.get_path().startswith(env.get_user_activities_path()):
try:
self.uninstall(bundle, force=True)
- except Exception, e:
- logging.warning('Uninstall failed (%s), still trying ' \
- 'to install newer bundle', e)
+ except Exception:
+ logging.error('Uninstall failed, still trying to install ' \
+ 'newer bundle:\n' + \
+ ''.join(traceback.format_exception(*sys.exc_info())))
else:
logging.warning('Unable to uninstall system activity, ' \
'installing upgraded version in user activities')