From 6a579c9915d86b338cc3b5fb9bd068788b535064 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 11 Oct 2008 11:31:48 +0000 Subject: (fast_open_urpmi_db) do not read big debug media if 'ignore_debug_media' option is set --- Rpmdrake/open_db.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Rpmdrake/open_db.pm') 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'); -- cgit v1.2.1