aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-07-18 18:09:10 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-07-18 18:09:10 +0000
commit27e2670865af8bee67d6ffca83195981b2f3d8b0 (patch)
treeae490ef7817cecb81f22726cd9cdfecbf60972c9
parent71c0723efa51d9e0e779f70e3ee7ce90d1dc2f4a (diff)
downloadperl-URPM-27e2670865af8bee67d6ffca83195981b2f3d8b0.tar
perl-URPM-27e2670865af8bee67d6ffca83195981b2f3d8b0.tar.gz
perl-URPM-27e2670865af8bee67d6ffca83195981b2f3d8b0.tar.bz2
perl-URPM-27e2670865af8bee67d6ffca83195981b2f3d8b0.tar.xz
perl-URPM-27e2670865af8bee67d6ffca83195981b2f3d8b0.zip
add filelinktos() & dirnames() to URPM::Package
-rw-r--r--URPM.pm4
-rw-r--r--URPM.xs16
2 files changed, 20 insertions, 0 deletions
diff --git a/URPM.pm b/URPM.pm
index a6552bb..3cc75c6 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -509,6 +509,8 @@ Writes a line of information in a synthesis file.
=item $package->description()
+=item $package->dirnames()
+
=item $package->distribution()
=item $package->epoch()
@@ -517,6 +519,8 @@ Writes a line of information in a synthesis file.
=item $package->exclusivearchs()
+=item $package->filelinktos()
+
=item $package->files()
List of files in this rpm.
diff --git a/URPM.xs b/URPM.xs
index 3e28670..d6bc566 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2271,6 +2271,22 @@ Pkg_exclusivearchs(pkg)
SPAGAIN;
void
+Pkg_dirnames(pkg)
+ URPM::Package pkg
+ PPCODE:
+ PUTBACK;
+ xpush_simple_list_str(pkg->h, RPMTAG_DIRNAMES);
+ SPAGAIN;
+
+void
+Pkg_filelinktos(pkg)
+ URPM::Package pkg
+ PPCODE:
+ PUTBACK;
+ xpush_simple_list_str(pkg->h, RPMTAG_FILELINKTOS);
+ SPAGAIN;
+
+void
Pkg_files(pkg)
URPM::Package pkg
PPCODE: