Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-09-20 16:24:00 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-09-20 16:24:00 (GMT)
commitf0998bbd028a539f4439ea32d6c62b6338685a9f (patch)
tree3ee6f25803151992c356a88018c0e63d4072c587 /extensions
parentd8e21d039b1e99f47fb107be1ce595e57dac07bf (diff)
Remove remaining .xo files from cancelled updates #1399
Diffstat (limited to 'extensions')
-rwxr-xr-xextensions/cpsection/updater/model.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/cpsection/updater/model.py b/extensions/cpsection/updater/model.py
index ff22736..ce0708e 100755
--- a/extensions/cpsection/updater/model.py
+++ b/extensions/cpsection/updater/model.py
@@ -207,6 +207,9 @@ class UpdateModel(gobject.GObject):
if self._downloader is not None:
self._downloader.cancel()
+ file_path = self._downloader.get_local_file_path()
+ if file_path is not None and os.path.exists(file_path):
+ os.unlink(file_path)
self._downloader = None
self._total_bundles_to_update = 0