diff options
author | Florent Villard <warly@mandriva.com> | 2003-06-04 09:47:08 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-06-04 09:47:08 +0000 |
commit | 468c2daada584c066dcb1ee42e2f038f64242e7a (patch) | |
tree | 7685acdc44f83ad49d7a42027d9b857054605566 /URPM.xs | |
parent | e8157ee4418d2f39625fd93c43d3f8f313016413 (diff) | |
download | perl-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.xs | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |