aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-06-04 09:47:08 +0000
committerFlorent Villard <warly@mandriva.com>2003-06-04 09:47:08 +0000
commit468c2daada584c066dcb1ee42e2f038f64242e7a (patch)
tree7685acdc44f83ad49d7a42027d9b857054605566 /URPM.xs
parente8157ee4418d2f39625fd93c43d3f8f313016413 (diff)
downloadperl-URPM-468c2daada584c066dcb1ee42e2f038f64242e7a.tar
perl-URPM-468c2daada584c066dcb1ee42e2f038f64242e7a.tar.gz
perl-URPM-468c2daada584c066dcb1ee42e2f038f64242e7a.tar.bz2
perl-URPM-468c2daada584c066dcb1ee42e2f038f64242e7a.tar.xz
perl-URPM-468c2daada584c066dcb1ee42e2f038f64242e7a.zip
Add Pkg_buildtime to get RPMTAG_BUILDTIME
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs12
1 files changed, 12 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 0a0357b..c04baaf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1306,6 +1306,18 @@ Pkg_buildhost(pkg)
XPUSHs(sv_2mortal(newSVpv(get_name(pkg->h, RPMTAG_BUILDHOST), 0)));
}
+int
+Pkg_buildtime(pkg)
+ URPM::Package pkg
+ CODE:
+ if (pkg->h) {
+ RETVAL = get_int(pkg->h, RPMTAG_BUILDTIME);
+ } else {
+ RETVAL = 0;
+ }
+ OUTPUT:
+ RETVAL
+
void
Pkg_url(pkg)
URPM::Package pkg