From 233029d9e7142ff84f7548d7a7aa70fb0478b0c2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 11 Sep 2007 13:31:32 +0000 Subject: (open_urpmi_db) shrink opening urpmi DB time by 30% (#33334) --- Rpmdrake/pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 4116be21..634802ff 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -251,7 +251,7 @@ sub open_urpmi_db() { N("A fatal error occurred: %s.", $_[1])); }; my $media = ref $::rpmdrake_options{media} ? join(',', @{$::rpmdrake_options{media}}) : ''; - urpm::media::configure($urpm, media => $media); + urpm::media::read_config($urpm); my $searchmedia = join(',', map { $_->{name} } grep { $_->{ignore} && $_->{name} =~ /backport/i } @{$urpm->{media}}); urpm::media::configure($urpm, media => $media, if_($searchmedia, searchmedia => $searchmedia)); -- cgit v1.2.1