summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xmgaapplet-upgrade-helper3
2 files changed, 5 insertions, 0 deletions
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");