summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-11 07:53:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-11 07:53:51 +0000
commit62d5a9ee0698ba90711734fc8b155a6e21fc9daf (patch)
treeae47ca7ca859a9f4e1dceca569e6a15ff247ba52 /urpmq
parentfe9cbe02f11ecb5c3915761e4781b2223a1b8a75 (diff)
downloadurpmi-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-xurpmq9
1 files changed, 3 insertions, 6 deletions
diff --git a/urpmq b/urpmq
index 8e05cde6..345548c4 100755
--- a/urpmq
+++ b/urpmq
@@ -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");