From f0998bbd028a539f4439ea32d6c62b6338685a9f Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 20 Sep 2009 16:24:00 +0000 Subject: Remove remaining .xo files from cancelled updates #1399 --- 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 -- cgit v0.9.1