diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-04-21 20:40:05 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-04-21 20:40:05 +0000 |
commit | c8123dff0a5dbfff0a2100c207e421658e7cf3a9 (patch) | |
tree | 5601c0d64216126768b106cde7fb1d36bcbf155c | |
parent | b64bd831d5db5df92efa07f19bd83ccdea8c690d (diff) | |
download | mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.tar mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.tar.gz mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.tar.bz2 mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.tar.xz mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.zip |
(upgrade) invalidate urpmi cache on upgrade (mga#1588)
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | mgaapplet-upgrade-helper | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -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"); |