aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/open_db.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-04 23:26:26 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-04 23:26:26 +0000
commit5d5bbe030dd56ef04900ef6ade7a63c6dbae1f39 (patch)
tree3646ccf273070069270216af8d7733e950ac19a6 /Rpmdrake/open_db.pm
parentab33211db20a80f494950231098bba1ab5f8ba7d (diff)
downloadrpmdrake-5d5bbe030dd56ef04900ef6ade7a63c6dbae1f39.tar
rpmdrake-5d5bbe030dd56ef04900ef6ade7a63c6dbae1f39.tar.gz
rpmdrake-5d5bbe030dd56ef04900ef6ade7a63c6dbae1f39.tar.bz2
rpmdrake-5d5bbe030dd56ef04900ef6ade7a63c6dbae1f39.tar.xz
rpmdrake-5d5bbe030dd56ef04900ef6ade7a63c6dbae1f39.zip
handle priority upgrade list
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r--Rpmdrake/open_db.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm
index 498e8520..5385d09f 100644
--- a/Rpmdrake/open_db.pm
+++ b/Rpmdrake/open_db.pm
@@ -97,6 +97,8 @@ sub open_urpmi_db {
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});
+ my $previous = $::rpmdrake_options{'previous-priority-upgrade'};
+ urpm::select::set_priority_upgrade_option($urpm, (ref $previous ? join(',', @$previous) : ()));
urpm::media::configure($urpm, media => $media, if_($searchmedia, searchmedia => $searchmedia), %urpmi_options);
$urpm;
}