diff options
Diffstat (limited to 'mgaapplet-upgrade-helper')
-rwxr-xr-x | mgaapplet-upgrade-helper | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |