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 | |
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)
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | urpmq | 9 |
2 files changed, 5 insertions, 6 deletions
@@ -18,6 +18,8 @@ o always prompt before doing a priority-upgrade transaction, even if there is only one priority upgrade package (since there will be more packages to install after restarting urpmi) +- urpmq: + o use URPM::Package->changelogs (need perl-URPM 3.06) Version 4.10.19 - 12 December 2007, by Pascal "Pixel" Rigaux @@ -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"); |