aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-21 20:08:53 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-21 20:08:53 +0000
commite7d1fc7b0e520b0cf788fb915906588378869eb7 (patch)
tree0bc1a493026ba12cefb8994407b7be4c841caabb
parent2723588f9316f16cb01f3c77d837c37bb28d190e (diff)
downloadperl-URPM-e7d1fc7b0e520b0cf788fb915906588378869eb7.tar
perl-URPM-e7d1fc7b0e520b0cf788fb915906588378869eb7.tar.gz
perl-URPM-e7d1fc7b0e520b0cf788fb915906588378869eb7.tar.bz2
perl-URPM-e7d1fc7b0e520b0cf788fb915906588378869eb7.tar.xz
perl-URPM-e7d1fc7b0e520b0cf788fb915906588378869eb7.zip
(Pkg_suggests) alias it on *_nonsense
(it should have been named suggests_nosense in the first place, bad pixel...)
-rw-r--r--NEWS2
-rw-r--r--URPM.xs10
2 files changed, 4 insertions, 8 deletions
diff --git a/NEWS b/NEWS
index 69e432a..69fe5eb 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- reduce code size
+
Version 4.18 - 21 November 2012
- further bump threshold for detecting looping forever
diff --git a/URPM.xs b/URPM.xs
index 5e8842c..de29a3c 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1819,14 +1819,6 @@ Pkg_set_id(pkg, id=-1)
pkg->flag |= id >= 0 && id <= FLAG_ID_MAX ? id : FLAG_ID_INVALID;
void
-Pkg_suggests(pkg)
- URPM::Package pkg
- PPCODE:
- PUTBACK;
- return_list_str(pkg->suggests, pkg->h, RPMTAG_SUGGESTSNAME, 0, 0, callback_list_str_xpush, NULL);
- SPAGAIN;
-
-void
Pkg_obsoletes(pkg)
URPM::Package pkg
ALIAS:
@@ -1853,6 +1845,7 @@ Pkg_obsoletes_nosense(pkg)
conflicts_nosense = 1
provides_nosense = 2
requires_nosense = 3
+ suggests = 4
PPCODE:
PUTBACK;
rpmTag tag;
@@ -1861,6 +1854,7 @@ Pkg_obsoletes_nosense(pkg)
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;
+ case 4: tag = RPMTAG_SUGGESTSNAME; s = pkg->suggests; break;
default: tag = RPMTAG_OBSOLETENAME; s = pkg->obsoletes; break;
}
return_list_str(s, pkg->h, tag, 0, 0, callback_list_str_xpush, NULL);