From e7d1fc7b0e520b0cf788fb915906588378869eb7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 21 Nov 2012 20:08:53 +0000 Subject: (Pkg_suggests) alias it on *_nonsense (it should have been named suggests_nosense in the first place, bad pixel...) --- NEWS | 2 ++ URPM.xs | 10 ++-------- 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 @@ -1818,14 +1818,6 @@ Pkg_set_id(pkg, id=-1) pkg->flag &= ~FLAG_ID_MASK; 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 @@ -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); -- cgit v1.2.1