diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-02-23 15:48:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-02-23 15:48:53 +0000 |
commit | c4c49a7f0b39d235118a4a3770fea969739f20eb (patch) | |
tree | d374ba511617952fce79d73ed989011845f036b9 | |
parent | ba664e67b0c6e771cb6019c1877c90a47d0c95b8 (diff) | |
download | rpmdrake-c4c49a7f0b39d235118a4a3770fea969739f20eb.tar rpmdrake-c4c49a7f0b39d235118a4a3770fea969739f20eb.tar.gz rpmdrake-c4c49a7f0b39d235118a4a3770fea969739f20eb.tar.bz2 rpmdrake-c4c49a7f0b39d235118a4a3770fea969739f20eb.tar.xz rpmdrake-c4c49a7f0b39d235118a4a3770fea969739f20eb.zip |
(get_inactive_backport_media) do not try to update & parse inactive debug
backports media (slightly reduce memory usage -- 464kb on current 2009.0 media config)
-rw-r--r-- | Rpmdrake/open_db.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index 5385d09f..e1c0f048 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -77,6 +77,14 @@ sub fast_open_urpmi_db() { }; urpm::media::read_config($urpm); + foreach ({}) {#(@{$urpm->{media}}) { + next if $_->{ignore}; + #$_->{ignore} = 1 if $_->{name} =~ /debug/i; + urpm::media::_tempignore($_, 1) if $_->{name} =~ /debug/i; + warn ">> ignoring $_->{name}\n" if $_->{name} =~ /debug/i; + urpm::media::_tempignore($_, 1) if $_->{url} =~ /586/i; + warn "]] ignoring $_->{name}\n" if $_->{url} =~ /586/i; + } # FIXME: seems uneeded with newer urpmi: if ($error_happened) { touch('/etc/urpmi/urpmi.cfg'); @@ -87,7 +95,7 @@ sub fast_open_urpmi_db() { sub get_inactive_backport_media { my ($urpm) = @_; - map { $_->{name} } grep { $_->{ignore} && $_->{name} =~ /backport/i } @{$urpm->{media}}; + map { $_->{name} } grep { $_->{ignore} && $_->{name} =~ /backport/i && $_->{name} !~ /debug/i } @{$urpm->{media}}; } sub open_urpmi_db { |