aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);