summaryrefslogtreecommitdiffstats
path: root/mgaapplet-upgrade-helper
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2019-11-19 12:51:46 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2019-11-19 12:51:46 +0000
commit74640efb3b1bfd17c51239c81fe1fb214ca95054 (patch)
tree69042eaec766980dd0642637ef64cd092969f2fa /mgaapplet-upgrade-helper
parentc87267dfffd4fda064dacae352d3171bec512a8d (diff)
downloadmgaonline-74640efb3b1bfd17c51239c81fe1fb214ca95054.tar
mgaonline-74640efb3b1bfd17c51239c81fe1fb214ca95054.tar.gz
mgaonline-74640efb3b1bfd17c51239c81fe1fb214ca95054.tar.bz2
mgaonline-74640efb3b1bfd17c51239c81fe1fb214ca95054.tar.xz
mgaonline-74640efb3b1bfd17c51239c81fe1fb214ca95054.zip
Stop dnf-makecache.timer before starting upgrade (mga#25072).
Diffstat (limited to 'mgaapplet-upgrade-helper')
-rwxr-xr-xmgaapplet-upgrade-helper2
1 files changed, 2 insertions, 0 deletions
diff --git a/mgaapplet-upgrade-helper b/mgaapplet-upgrade-helper
index e709d8f3..c00dd3f7 100755
--- a/mgaapplet-upgrade-helper
+++ b/mgaapplet-upgrade-helper
@@ -207,6 +207,8 @@ sub upgrade() {
run_program::raw({ detach => 1 }, 'xdg-screensaver', 'suspend', $xid);
my $_w = before_leaving { run_program::raw({ detach => 1 }, 'xdg-screensaver', 'resume', $xid) };
+ run_program::run('systemctl', 'stop', 'dnf-makecache.timer');
+
my $file = "$ENV{HOME}/.MgaOnline/urpmi.cfg.backup." . int(rand 100000);
log::explanations("backuping urpmi configuration in $file");
cp_af("$root/etc/urpmi/urpmi.cfg", $file);