aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-09 17:29:21 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-09 17:29:21 +0000
commitfe9d485a1db84e721c94e38ea5f36494ce4c78af (patch)
tree392f8db2f2f70d703d4887d8387c8931891b1592
parent45280b9e0cf1febe8f81648218d439b804c7824f (diff)
downloadperl-URPM-fe9d485a1db84e721c94e38ea5f36494ce4c78af.tar
perl-URPM-fe9d485a1db84e721c94e38ea5f36494ce4c78af.tar.gz
perl-URPM-fe9d485a1db84e721c94e38ea5f36494ce4c78af.tar.bz2
perl-URPM-fe9d485a1db84e721c94e38ea5f36494ce4c78af.tar.xz
perl-URPM-fe9d485a1db84e721c94e38ea5f36494ce4c78af.zip
Add installtid method
-rw-r--r--URPM.pm2
-rw-r--r--URPM.xs12
2 files changed, 14 insertions, 0 deletions
diff --git a/URPM.pm b/URPM.pm
index 00f632f..88fb948 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -520,6 +520,8 @@ Return an array of human readable view of tag values. $tagid is the numerical va
=item $package->id()
+=item $package->installtid()
+
=item $package->is_arch_compat()
=item $package->license()
diff --git a/URPM.xs b/URPM.xs
index 48181a8..7da9eac 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1518,6 +1518,18 @@ Pkg_buildtime(pkg)
OUTPUT:
RETVAL
+int
+Pkg_installtid(pkg)
+ URPM::Package pkg
+ CODE:
+ if (pkg->h) {
+ RETVAL = get_int(pkg->h, RPMTAG_INSTALLTID);
+ } else {
+ RETVAL = 0;
+ }
+ OUTPUT:
+ RETVAL
+
void
Pkg_url(pkg)
URPM::Package pkg