aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-07 17:24:51 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-07 17:24:51 +0000
commit0e138616c770f5abdd134151d0673d035cc0bc52 (patch)
treec1a428c4a861688b1bc06d178c5f8cda480e62b5 /Rpmdrake/pkg.pm
parente81e007c155c4caeee24b4fb4025f6ba803ecd0f (diff)
downloadrpmdrake-0e138616c770f5abdd134151d0673d035cc0bc52.tar
rpmdrake-0e138616c770f5abdd134151d0673d035cc0bc52.tar.gz
rpmdrake-0e138616c770f5abdd134151d0673d035cc0bc52.tar.bz2
rpmdrake-0e138616c770f5abdd134151d0673d035cc0bc52.tar.xz
rpmdrake-0e138616c770f5abdd134151d0673d035cc0bc52.zip
(get_pkgs) make it more readable (needed for next commits)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm11
1 files changed, 6 insertions, 5 deletions
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;