aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/open_db.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-04 17:15:17 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-04 17:15:17 +0000
commit6ce824cc0a3c4e0652faac352dac9243d1e1bda4 (patch)
tree0bf5c0a38715ee13fe8a0649e78e43a59ce256bc /Rpmdrake/open_db.pm
parent3eced87edee595ad8ef04c714e259150e9dbbdfc (diff)
downloadrpmdrake-6ce824cc0a3c4e0652faac352dac9243d1e1bda4.tar
rpmdrake-6ce824cc0a3c4e0652faac352dac9243d1e1bda4.tar.gz
rpmdrake-6ce824cc0a3c4e0652faac352dac9243d1e1bda4.tar.bz2
rpmdrake-6ce824cc0a3c4e0652faac352dac9243d1e1bda4.tar.xz
rpmdrake-6ce824cc0a3c4e0652faac352dac9243d1e1bda4.zip
(open_urpmi_db) fix MandrivaUpdate not ignoring backport media tagged as update (#36654)
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r--Rpmdrake/open_db.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm
index ecffd7c0..864bfb4d 100644
--- a/Rpmdrake/open_db.pm
+++ b/Rpmdrake/open_db.pm
@@ -94,7 +94,7 @@ sub open_urpmi_db {
my $urpm = fast_open_urpmi_db();
my $media = ref $::rpmdrake_options{media} ? join(',', @{$::rpmdrake_options{media}}) : '';
- my $searchmedia = join(',', get_inactive_backport_media($urpm));
+ my $searchmedia = $urpmi_options{update} ? undef : join(',', get_inactive_backport_media($urpm));
$urpm->{lock} = urpm::lock::urpmi_db($urpm, undef, wait => $urpm->{options}{wait_lock});
urpm::media::configure($urpm, media => $media, if_($searchmedia, searchmedia => $searchmedia), %urpmi_options);
$urpm;