aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-11 11:31:48 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-11 11:31:48 +0000
commit6a579c9915d86b338cc3b5fb9bd068788b535064 (patch)
treefa54fd3e79ea7a131b4bcd9146a19290cb425b87 /Rpmdrake
parente4d8c20f4be6a0c3072ddaba009d6e78372e2613 (diff)
downloadrpmdrake-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')
-rw-r--r--Rpmdrake/open_db.pm4
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');