From c8123dff0a5dbfff0a2100c207e421658e7cf3a9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 21 Apr 2012 20:40:05 +0000 Subject: (upgrade) invalidate urpmi cache on upgrade (mga#1588) --- NEWS | 2 ++ mgaapplet-upgrade-helper | 3 +++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index c4ec2576..451c2777 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- invalidate urpmi cache on upgrade (mga#1588) + Version 2.77.32 - 15 March 2012, Kamil Rytarowski - stop using Mandriva URLs and replace them by www.mageia.org (mga#1590) diff --git a/mgaapplet-upgrade-helper b/mgaapplet-upgrade-helper index 357f7703..c9b8bad6 100755 --- a/mgaapplet-upgrade-helper +++ b/mgaapplet-upgrade-helper @@ -283,6 +283,9 @@ packages as well?).")) log::explanations("removing all existing urpmi media for upgrade"); run_program::run('urpmi.removemedia', if_($root, '--urpmi-root', $root), '-a'); + #- clear the mirror cache before upgrading: + eval { rm_rf("$::prefix/var/cache/urpmi/mirrors.cache") }; + $urpm = Rpmdrake::open_db::fast_open_urpmi_db(); if ($urpm->{global_config}{downloader}) { log::explanations("disabling custom downloader in order to use aria2"); -- cgit v1.2.1