diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-01-11 07:53:51 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-01-11 07:53:51 +0000 |
commit | 62d5a9ee0698ba90711734fc8b155a6e21fc9daf (patch) | |
tree | ae47ca7ca859a9f4e1dceca569e6a15ff247ba52 /urpmq | |
parent | fe9cbe02f11ecb5c3915761e4781b2223a1b8a75 (diff) | |
download | urpmi-62d5a9ee0698ba90711734fc8b155a6e21fc9daf.tar urpmi-62d5a9ee0698ba90711734fc8b155a6e21fc9daf.tar.gz urpmi-62d5a9ee0698ba90711734fc8b155a6e21fc9daf.tar.bz2 urpmi-62d5a9ee0698ba90711734fc8b155a6e21fc9daf.tar.xz urpmi-62d5a9ee0698ba90711734fc8b155a6e21fc9daf.zip |
- urpmq:
o use URPM::Package->changelogs (need perl-URPM 3.06)
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -406,12 +406,9 @@ if ($options{list_aliases}) { } } if ($options{changelog}) { - if ($pkg->changelog_time && $pkg->changelog_name && $pkg->changelog_text) { - my @ti = $pkg->changelog_time; - my @na = $pkg->changelog_name; - my @tx = $pkg->changelog_text; - foreach my $i (0 .. $#ti) { - print "* " . urpm::msg::localtime2changelog($ti[$i]) . " $na[$i]\n$tx[$i]\n\n"; + if (my @changelogs = $pkg->changelogs) { + foreach (@changelogs) { + print "* " . urpm::msg::localtime2changelog($_->{time}) . " $_->{name}\n$_->{text}\n\n"; } } else { print STDERR N("No changelog found\n"); |