From 009782189c18e0e1ae5e92dc4d8d28418050c265 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 13 Apr 2013 03:13:37 +0200 Subject: [PATCH] Update button: expire cache before checking for updates --- qubesmanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 89c6a39..4e4ca57 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -1562,7 +1562,7 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow): if vm.qid == 0: subprocess.check_call (["/usr/bin/qubes-dom0-update", "--clean", "--gui"]) else: - vm.run("gpk-update-viewer;sudo service qubes-update-check start", verbose=False, autostart=True, + vm.run("sudo yum clean expire-cache;gpk-update-viewer;sudo service qubes-update-check start", verbose=False, autostart=True, notify_function=lambda lvl, msg: trayIcon.showMessage(msg, msecs=3000) ) except Exception as ex: thread_monitor.set_error_msg(str(ex))