aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-05-30 10:11:45 +0000
committerFlorent Villard <warly@mandriva.com>2003-05-30 10:11:45 +0000
commitf002e054e3f65987539ff4f4e4653b35c2ce96e4 (patch)
tree87c71258d8a1d9a1642fe9f8dbe2a6dc06ba387a /URPM.xs
parent07e32b67ac8f934eb98b3902aa0d4e29b1822813 (diff)
downloadperl-URPM-f002e054e3f65987539ff4f4e4653b35c2ce96e4.tar
perl-URPM-f002e054e3f65987539ff4f4e4653b35c2ce96e4.tar.gz
perl-URPM-f002e054e3f65987539ff4f4e4653b35c2ce96e4.tar.bz2
perl-URPM-f002e054e3f65987539ff4f4e4653b35c2ce96e4.tar.xz
perl-URPM-f002e054e3f65987539ff4f4e4653b35c2ce96e4.zip
add Pkg_license function to URPM.xs (URPM::Package)
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs8
1 files changed, 8 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 148adc4..da34aeb 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1309,6 +1309,14 @@ Pkg_url(pkg)
}
void
+Pkg_license(pkg)
+ URPM::Package pkg
+ PPCODE:
+ if (pkg->h) {
+ XPUSHs(sv_2mortal(newSVpv(get_name(pkg->h, RPMTAG_LICENSE), 0)));
+ }
+
+void
Pkg_fullname(pkg)
URPM::Package pkg
PREINIT: