aboutsummaryrefslogtreecommitdiffstats
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
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)
-rw-r--r--URPM.xs8
-rw-r--r--perl-URPM.spec5
2 files changed, 12 insertions, 1 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:
diff --git a/perl-URPM.spec b/perl-URPM.spec
index 85e9f15..7f0c365 100644
--- a/perl-URPM.spec
+++ b/perl-URPM.spec
@@ -1,7 +1,7 @@
%define name perl-URPM
%define real_name URPM
%define version 0.90
-%define release 2mdk
+%define release 3mdk
%{expand:%%define rpm_version %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' rpm)}
@@ -51,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed May 28 2003 Warly <warly@mandrakesoft.com> 0.90-3mdk
+- add license function for urpm->{depslist}[$id]
+
* Mon May 26 2003 François Pons <fpons@mandrakesoft.com> 0.90-2mdk
- fixed URPM::resolve_requested return value (list of package
selected by this call).