aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-11 17:05:31 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-11 17:05:31 +0000
commit90865702432235a309cc4454c2c269cdef1aef63 (patch)
treef7cc39ad13b88a2e44dacf157d1c9fabcb292ef5 /Rpmdrake/pkg.pm
parent4a03a9eaeb779ee3210f884af0e86a26f086619d (diff)
downloadrpmdrake-90865702432235a309cc4454c2c269cdef1aef63.tar
rpmdrake-90865702432235a309cc4454c2c269cdef1aef63.tar.gz
rpmdrake-90865702432235a309cc4454c2c269cdef1aef63.tar.bz2
rpmdrake-90865702432235a309cc4454c2c269cdef1aef63.tar.xz
rpmdrake-90865702432235a309cc4454c2c269cdef1aef63.zip
(warn_about_media) further improve startup time by killing a costly
urpm::media::configure that is only needed in some cases (#33334)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 5d8f9444..142ac4c3 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -156,13 +156,13 @@ my (@update_medias, $is_update_media_already_asked);
sub warn_about_media {
my ($w, $opts) = @_;
- # we use our own instance of the urpmi db in order not to mess up with skip-list managment (#31092):
- my $urpm = open_urpmi_db();
-
my $update_name = 'update_source';
return if !member($::default_list_mode, qw(all_updates security bugfix normal));
return if $::rpmdrake_options{'no-media-update'};
+ # we use our own instance of the urpmi db in order not to mess up with skip-list managment (#31092):
+ my $urpm = open_urpmi_db();
+
# do not update again media after installing/removing some packages:
$::rpmdrake_options{'no-media-update'} ||= 1;