summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-04 19:35:21 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-04 19:35:21 +0000
commitef0f7e7eaed07d314247b7d8054c061e90dc8607 (patch)
tree631d28c3aac3c4bfdadd78d3a4cf45507b87b131 /urpm
parent01316da030388b0996cc52af0bcf6a44552e6f26 (diff)
downloadurpmi-ef0f7e7eaed07d314247b7d8054c061e90dc8607.tar
urpmi-ef0f7e7eaed07d314247b7d8054c061e90dc8607.tar.gz
urpmi-ef0f7e7eaed07d314247b7d8054c061e90dc8607.tar.bz2
urpmi-ef0f7e7eaed07d314247b7d8054c061e90dc8607.tar.xz
urpmi-ef0f7e7eaed07d314247b7d8054c061e90dc8607.zip
(add_packages_to_priority_upgrade_list) prevent adding twice the same package
Diffstat (limited to 'urpm')
-rw-r--r--urpm/select.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 16e46af6..5f5632a1 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -11,6 +11,7 @@ my $default_list = 'rpm,perl-URPM,perl-MDV-Distribconf,urpmi,meta-task,glibc';
sub add_packages_to_priority_upgrade_list {
my (@packages) = @_;
+ @packages = grep { $default_list !~ /,$_\b/ } @packages;
return if !@packages;
$default_list .= join(',', '', @packages);
}