summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-04 13:43:51 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-04 13:43:51 +0000
commit487f81216dc6165af71e71dd854fd88794840449 (patch)
treed79e041f221ae1dd72c02c2aa048bda1d6da04be /urpm/select.pm
parentb1c11ca78832a68f63ad07d7e7c70d30be96472a (diff)
downloadurpmi-487f81216dc6165af71e71dd854fd88794840449.tar
urpmi-487f81216dc6165af71e71dd854fd88794840449.tar.gz
urpmi-487f81216dc6165af71e71dd854fd88794840449.tar.bz2
urpmi-487f81216dc6165af71e71dd854fd88794840449.tar.xz
urpmi-487f81216dc6165af71e71dd854fd88794840449.zip
(set_priority_upgrade_option) split default priority upgrade list
needed for next commit
Diffstat (limited to 'urpm/select.pm')
-rw-r--r--urpm/select.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 0dd8106a..320fb445 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -7,6 +7,8 @@ use urpm::util;
use urpm::sys;
use URPM;
+my $default_list = 'rpm,perl-URPM,perl-MDV-Distribconf,urpmi,meta-task,glibc';
+
sub set_priority_upgrade_option {
my ($urpm, $previous) = @_;
@@ -14,7 +16,7 @@ sub set_priority_upgrade_option {
# comma-separated list of packages that should be installed first,
# and that trigger an urpmi restart
- my $list = 'rpm,perl-URPM,perl-MDV-Distribconf,urpmi,meta-task,glibc';
+ my $list = $default_list;
if ($previous) {
if ($previous eq $list) {
$list = '';