From 0e138616c770f5abdd134151d0673d035cc0bc52 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 7 Mar 2008 17:24:51 +0000 Subject: (get_pkgs) make it more readable (needed for next commits) --- Rpmdrake/pkg.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Rpmdrake') diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index ebb6fba1..97fdcdda 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -419,11 +419,12 @@ sub get_pkgs { # list of pure updates (w/o those matching /etc/urpmi/skip.list but with their deps): my @requested_strict; - @requested_strict = $probe_only_for_updates ? - sort map { - urpm_name($_); - } $urpm->resolve_requested($db, $state, $requested, callback_choices => \&Rpmdrake::gui::callback_choices) - : (); + if ($probe_only_for_updates) { + @requested_strict = sort map { + urpm_name($_); + } $urpm->resolve_requested($db, $state, $requested, callback_choices => \&Rpmdrake::gui::callback_choices); + } + # list updates including skiped ones + their deps in MandrivaUpdate: @requested = uniq(@requested, @requested_strict) if $probe_only_for_updates; -- cgit v1.2.1