diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-11-19 13:34:51 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-11-19 13:34:51 +0000 |
commit | 98edbcab8e1c7fc4d3bd2ed0fcb3786b6ce75a21 (patch) | |
tree | 60b26ef625d30bbb4ba82c544cf6ae5f958be728 | |
parent | a9eae95bbd960d1ffcaad9e09fc890030a5f6ec3 (diff) | |
download | urpmi-98edbcab8e1c7fc4d3bd2ed0fcb3786b6ce75a21.tar urpmi-98edbcab8e1c7fc4d3bd2ed0fcb3786b6ce75a21.tar.gz urpmi-98edbcab8e1c7fc4d3bd2ed0fcb3786b6ce75a21.tar.bz2 urpmi-98edbcab8e1c7fc4d3bd2ed0fcb3786b6ce75a21.tar.xz urpmi-98edbcab8e1c7fc4d3bd2ed0fcb3786b6ce75a21.zip |
- urpmi
o --auto-update is quite unsafe, but at least now it should be cleaner
(ensure $urpm doesn't have media twice)
bug triggered by --auto-update --update. still --auto-update --update should
not update non-update media...
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | urpm/media.pm | 2 | ||||
-rwxr-xr-x | urpmi | 7 |
3 files changed, 7 insertions, 4 deletions
@@ -3,6 +3,8 @@ so allow symlinks on the server) o fix "urpmi --install-src" (regression introduced in 4.10.9) (#35164) o fix --limit-rate (regression introduced in 4.9.12) + o --auto-update is quite unsafe, but at least now it should be cleaner + (ensure $urpm doesn't have media twice) Version 4.10.14 - 4 October 2007, by Pascal "Pixel" Rigaux diff --git a/urpm/media.pm b/urpm/media.pm index 37719335..90fbd167 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -464,7 +464,7 @@ sub write_config { sub _tempignore { my ($medium, $ignore) = @_; - $medium->{tempignore} = $medium->{ignore} = $ignore; + $medium->{ignore} = $ignore; } #- read urpmi.cfg file as well as necessary synthesis files @@ -369,9 +369,10 @@ if ($auto_update && !$bug && !$env) { nomd5sum => $nomd5sum, forcekey => $forcekey, ); - foreach (@{$urpm->{media} || []}) { - $_->{tempignore} and delete $_->{ignore}; - } + delete $urpm->{media}; + $urpm->{depslist} = []; + $urpm->{provides} = {}; + $urpm->{obsoletes} = {}; } urpm::media::configure($urpm, %config_hash); |