diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-10 22:33:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-10 22:33:10 +0000 |
commit | 5f2f72b5abba11285f4c6cc709ad8d7576158b67 (patch) | |
tree | dbb719c7fa601ac908bd9ae8fe93012ca50493d7 /urpm.pm | |
parent | 43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b (diff) | |
download | urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.tar urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.tar.gz urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.tar.bz2 urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.tar.xz urpmi-5f2f72b5abba11285f4c6cc709ad8d7576158b67.zip |
(get_updates_description) simplify construction of "cur"
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; }; |