aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-11 13:31:32 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-11 13:31:32 +0000
commit233029d9e7142ff84f7548d7a7aa70fb0478b0c2 (patch)
treef49bfa92c743cf12546dc0e5c0a5bf849a7e9fee /Rpmdrake
parent0d5df8b6724143c17d5838a2d3eb26fff90eeeb1 (diff)
downloadrpmdrake-233029d9e7142ff84f7548d7a7aa70fb0478b0c2.tar
rpmdrake-233029d9e7142ff84f7548d7a7aa70fb0478b0c2.tar.gz
rpmdrake-233029d9e7142ff84f7548d7a7aa70fb0478b0c2.tar.bz2
rpmdrake-233029d9e7142ff84f7548d7a7aa70fb0478b0c2.tar.xz
rpmdrake-233029d9e7142ff84f7548d7a7aa70fb0478b0c2.zip
(open_urpmi_db) shrink opening urpmi DB time by 30% (#33334)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
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));