diff options
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r-- | Rpmdrake/open_db.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index e831f808..4d756657 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -83,13 +83,14 @@ 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->{lock} = urpm::lock::urpmi_db($urpm, undef, wait => $urpm->{options}{wait_lock}); - urpm::media::configure($urpm, media => $media, if_($searchmedia, searchmedia => $searchmedia)); + urpm::media::configure($urpm, media => $media, if_($searchmedia, searchmedia => $searchmedia), %urpmi_options); $urpm; } |