summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--NEWS3
-rw-r--r--urpm/select.pm6
2 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 06f2dfbc..c30a102d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- add infrastructure so that gurpmi & rpmdrake can handle priority
+ upgrade list
+
Version 5.7 - 3 March 2008, by Pascal "Pixel" Rigaux
- all tools:
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) = @_;