From 0969ff6d8d58e860a5f7f1b1aa053f18dc919e1f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 7 Dec 2007 12:02:27 +0000 Subject: (get_pkgs,open_urpmi_db) fix fetching updates from non update media in MandrivaUpdate (#35009) --- Rpmdrake/open_db.pm | 5 +++-- Rpmdrake/pkg.pm | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index aa3cf9d6..9925467e 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -84,12 +84,13 @@ sub fast_open_urpmi_db() { $urpm; } -sub open_urpmi_db() { +sub open_urpmi_db { + my (%urpmi_options) = @_; my $urpm = fast_open_urpmi_db(); my $media = ref $::rpmdrake_options{media} ? join(',', @{$::rpmdrake_options{media}}) : ''; my $searchmedia = join(',', map { $_->{name} } grep { $_->{ignore} && $_->{name} =~ /backport/i } @{$urpm->{media}}); - urpm::media::configure($urpm, media => $media, if_($searchmedia, searchmedia => $searchmedia)); + urpm::media::configure($urpm, media => $media, if_($searchmedia, searchmedia => $searchmedia), %urpmi_options); $urpm; } diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index dcd90762..d08e36b1 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -240,7 +240,7 @@ sub get_pkgs { warn_about_media($w, $opts); - my $urpm = open_urpmi_db(); + my $urpm = open_urpmi_db(update => $probe_only_for_updates); my $_lock = urpm::lock::urpmi_db($urpm); -- cgit v1.2.1