diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-11 11:31:48 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-11 11:31:48 +0000 |
commit | 6a579c9915d86b338cc3b5fb9bd068788b535064 (patch) | |
tree | fa54fd3e79ea7a131b4bcd9146a19290cb425b87 /Rpmdrake/open_db.pm | |
parent | e4d8c20f4be6a0c3072ddaba009d6e78372e2613 (diff) | |
download | rpmdrake-6a579c9915d86b338cc3b5fb9bd068788b535064.tar rpmdrake-6a579c9915d86b338cc3b5fb9bd068788b535064.tar.gz rpmdrake-6a579c9915d86b338cc3b5fb9bd068788b535064.tar.bz2 rpmdrake-6a579c9915d86b338cc3b5fb9bd068788b535064.tar.xz rpmdrake-6a579c9915d86b338cc3b5fb9bd068788b535064.zip |
(fast_open_urpmi_db) do not read big debug media if 'ignore_debug_media'
option is set
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r-- | Rpmdrake/open_db.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index d7b3de40..d3cf568d 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -91,6 +91,10 @@ sub fast_open_urpmi_db() { }; urpm::media::read_config($urpm); + foreach (@{$urpm->{media}}) { + next if $_->{ignore}; + urpm::media::_tempignore($_, 1) if $ignore_debug_media->[0] && $_->{name} =~ /debug/i; + } # FIXME: seems uneeded with newer urpmi: if ($error_happened) { touch('/etc/urpmi/urpmi.cfg'); |