aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-11 07:51:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-11 07:51:05 +0000
commit73a660c198da5210ce7d91c8eb00789c5a7c1313 (patch)
treed5619afd4aeb575dd8b9115bbd0fff15560d527c
parent9970a5e062f6555c888ed8742e2a229d72cb0464 (diff)
downloadperl-URPM-73a660c198da5210ce7d91c8eb00789c5a7c1313.tar
perl-URPM-73a660c198da5210ce7d91c8eb00789c5a7c1313.tar.gz
perl-URPM-73a660c198da5210ce7d91c8eb00789c5a7c1313.tar.bz2
perl-URPM-73a660c198da5210ce7d91c8eb00789c5a7c1313.tar.xz
perl-URPM-73a660c198da5210ce7d91c8eb00789c5a7c1313.zip
- add URPM::Package->changelogs, a wrapper around ->changelog_time, ->changelog_name, ->changelog_text
-rw-r--r--NEWS1
-rw-r--r--URPM.pm11
2 files changed, 12 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8c858d4..c16f747 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- add URPM::Package->changelogs, a wrapper around ->changelog_time, ->changelog_name, ->changelog_text
- resolve kmod requires even if first choice is a source dkms
Version 3.05 - 8 January 2008, by Pascal "Pixel" Rigaux
diff --git a/URPM.pm b/URPM.pm
index dd2134a..303c618 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -227,6 +227,17 @@ sub is_arch_compat {
$arch_cache{$arch} = is_arch_compat__XS($pkg);
}
+sub changelogs {
+ my ($pkg) = @_;
+
+ my @ti = $pkg->changelog_time or return;
+ my @na = $pkg->changelog_name or return;
+ my @tx = $pkg->changelog_text or return;
+ map {
+ { time => $ti[$_], name => $na[$_], text => $tx[$_] };
+ } 0 .. $#ti;
+}
+
package URPM::Transaction;
our @ISA = qw(); # help perl_checker