aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-06 19:08:51 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-06 19:08:51 +0000
commit004e111e2596cf7958d55fd31dc1a7647e2a7499 (patch)
treed6f2b2d8ce389bf1866fa95d038e95fa1cba2d0d
parent7819984cb5ed376c6359f80281a9336d4de25e22 (diff)
downloadrpmdrake-004e111e2596cf7958d55fd31dc1a7647e2a7499.tar
rpmdrake-004e111e2596cf7958d55fd31dc1a7647e2a7499.tar.gz
rpmdrake-004e111e2596cf7958d55fd31dc1a7647e2a7499.tar.bz2
rpmdrake-004e111e2596cf7958d55fd31dc1a7647e2a7499.tar.xz
rpmdrake-004e111e2596cf7958d55fd31dc1a7647e2a7499.zip
(get_pkgs) simplify through uniq() (spotted by pixel)
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 5225831c..22d67a70 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -433,7 +433,7 @@ sub get_pkgs {
);
# list updates including skiped ones + their deps in MandrivaUpdate:
- push @requested, difference2(\@requested_strict, \@requested) if $probe_only_for_updates;
+ @requested = uniq(@requested, @requested_strict) if $probe_only_for_updates;
$priority_state = $restart_itself ? $state : undef;
$priority_requested = $restart_itself ? $requested : undef;