aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-21 20:08:46 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-21 20:08:46 +0000
commitd2c7b0d29879e15e7cd0662358aa045ad5cef4cc (patch)
treed4e3cfce4e683865488e5d3397b6f1ef7e78ca57 /URPM.xs
parent4ace59ab3fc0173e2ebde4c3d7b317814b784ed8 (diff)
downloadperl-URPM-d2c7b0d29879e15e7cd0662358aa045ad5cef4cc.tar
perl-URPM-d2c7b0d29879e15e7cd0662358aa045ad5cef4cc.tar.gz
perl-URPM-d2c7b0d29879e15e7cd0662358aa045ad5cef4cc.tar.bz2
perl-URPM-d2c7b0d29879e15e7cd0662358aa045ad5cef4cc.tar.xz
perl-URPM-d2c7b0d29879e15e7cd0662358aa045ad5cef4cc.zip
(requires_nosense) alias it to other *_nosense() functions
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs11
1 files changed, 2 insertions, 9 deletions
diff --git a/URPM.xs b/URPM.xs
index 5a988dd..c726dd3 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1828,15 +1828,6 @@ Pkg_requires(pkg)
SPAGAIN;
void
-Pkg_requires_nosense(pkg)
- URPM::Package pkg
- PPCODE:
- PUTBACK;
- return_list_str(pkg->requires, pkg->h, RPMTAG_REQUIRENAME, 0, 0,
- callback_list_str_xpush, NULL);
- SPAGAIN;
-
-void
Pkg_suggests(pkg)
URPM::Package pkg
PPCODE:
@@ -1859,6 +1850,7 @@ Pkg_obsoletes_nosense(pkg)
ALIAS:
conflicts_nosense = 1
provides_nosense = 2
+ requires_nosense = 3
PPCODE:
PUTBACK;
rpmTag tag;
@@ -1866,6 +1858,7 @@ Pkg_obsoletes_nosense(pkg)
switch (ix) {
case 1: tag = RPMTAG_CONFLICTNAME; s = pkg->conflicts; break;
case 2: tag = RPMTAG_PROVIDENAME; s = pkg->provides; break;
+ case 3: tag = RPMTAG_REQUIRENAME; s = pkg->requires; break;
default: tag = RPMTAG_OBSOLETENAME; s = pkg->obsoletes; break;
}
return_list_str(s, pkg->h, tag, 0, 0, callback_list_str_xpush, NULL);