aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-30 09:37:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-30 09:37:38 +0000
commit5076ce49735d1358b96c369103b16e9b8e92179b (patch)
tree86cfb1d00c7444b95c0f48c251ab61a27a6b8316
parent4f234000a25c81bd00c2954adf2eef138cf08d7d (diff)
downloadperl-URPM-5076ce49735d1358b96c369103b16e9b8e92179b.tar
perl-URPM-5076ce49735d1358b96c369103b16e9b8e92179b.tar.gz
perl-URPM-5076ce49735d1358b96c369103b16e9b8e92179b.tar.bz2
perl-URPM-5076ce49735d1358b96c369103b16e9b8e92179b.tar.xz
perl-URPM-5076ce49735d1358b96c369103b16e9b8e92179b.zip
Add the URPM::Package::payload_format method
-rw-r--r--URPM.pm2
-rw-r--r--URPM.xs8
2 files changed, 10 insertions, 0 deletions
diff --git a/URPM.pm b/URPM.pm
index 3502553..1f7b291 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -492,6 +492,8 @@ Return an array of human readable view of tag values. $tagid is the numerical va
=item $package->packager()
+=item $package->payload_format()
+
=item $package->provides()
=item $package->provides_nosense()
diff --git a/URPM.xs b/URPM.xs
index 053183b..290b3a2 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1547,6 +1547,14 @@ Pkg_os(pkg)
}
void
+Pkg_payload_format(pkg)
+ URPM::Package pkg
+ PPCODE:
+ if (pkg->h) {
+ XPUSHs(sv_2mortal(newSVpv(get_name(pkg->h, RPMTAG_PAYLOADFORMAT), 0)));
+ }
+
+void
Pkg_fullname(pkg)
URPM::Package pkg
PREINIT: