From 004e111e2596cf7958d55fd31dc1a7647e2a7499 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 6 Mar 2008 19:08:51 +0000 Subject: (get_pkgs) simplify through uniq() (spotted by pixel) --- Rpmdrake/pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rpmdrake/pkg.pm') 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; -- cgit v1.2.1