summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-04 13:44:11 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-04 13:44:11 +0000
commit39ea4236f990210b8a15dd65e59841900561cfb9 (patch)
tree9a8953c2b8c5bc7069bd8395a89a7bb0e8889020 /urpm
parent487f81216dc6165af71e71dd854fd88794840449 (diff)
downloadurpmi-39ea4236f990210b8a15dd65e59841900561cfb9.tar
urpmi-39ea4236f990210b8a15dd65e59841900561cfb9.tar.gz
urpmi-39ea4236f990210b8a15dd65e59841900561cfb9.tar.bz2
urpmi-39ea4236f990210b8a15dd65e59841900561cfb9.tar.xz
urpmi-39ea4236f990210b8a15dd65e59841900561cfb9.zip
(add_packages_to_priority_upgrade_list) introduce it so that gurpmi &
rpmdrake can handle priority upgrade list
Diffstat (limited to 'urpm')
-rw-r--r--urpm/select.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 320fb445..291180af 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -9,6 +9,12 @@ use URPM;
my $default_list = 'rpm,perl-URPM,perl-MDV-Distribconf,urpmi,meta-task,glibc';
+sub add_packages_to_priority_upgrade_list {
+ my (@packages) = @_;
+ return if !@packages;
+ $default_list .= join(',', '', @packages);
+}
+
sub set_priority_upgrade_option {
my ($urpm, $previous) = @_;