summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-10 22:33:10 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-10 22:33:10 +0000
commit5f2f72b5abba11285f4c6cc709ad8d7576158b67 (patch)
treedbb719c7fa601ac908bd9ae8fe93012ca50493d7
parent43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b (diff)
downloadurpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.tar
urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.tar.gz
urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.tar.bz2
urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.tar.xz
urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.zip
(get_updates_description) simplify construction of "cur"
-rw-r--r--urpm.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index f3d49d98..2e7f6be7 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -240,9 +240,7 @@ sub get_updates_description {
$cur->{importance} = 'normal';
}
$update_descr{$_} = $cur foreach @{$cur->{pkgs} || []};
- $cur = {};
- $cur->{pkgs} = [ split /\s/, $1 ];
- $cur->{medium} = $medium->{name};
+ $cur = { pkgs => [ split /\s/, $1 ], medium => $medium->{name} };
$section = 'pkg';
next;
};