aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
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