aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--URPM.xs4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 6e54e76..d906b20 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- make it compatible with rpm-4.12.0
+- use new recommends tags instead of suggests ones
+
Version 3.40 - 16 March 2012
- add URPM::traverse_tag_find() for urpme --env
diff --git a/URPM.xs b/URPM.xs
index 62ab588..c8c6eee 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -805,7 +805,7 @@ pack_header(URPM__Package pkg) {
if (has_old_suggests)
pkg->suggests = pack_list(pkg->h, RPMTAG_REQUIRENAME, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIREVERSION, is_old_suggests);
else
- pkg->suggests = pack_list(pkg->h, RPMTAG_SUGGESTSNAME, 0, 0, NULL);
+ pkg->suggests = pack_list(pkg->h, RPMTAG_RECOMMENDNAME, 0, 0, NULL);
if (pkg->obsoletes == NULL)
pkg->obsoletes = pack_list(pkg->h, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETEVERSION, NULL);
if (pkg->conflicts == NULL)
@@ -1978,7 +1978,7 @@ Pkg_suggests(pkg)
URPM::Package pkg
PPCODE:
PUTBACK;
- int count = return_list_str(pkg->suggests, pkg->h, RPMTAG_SUGGESTSNAME, 0, 0, callback_list_str_xpush, NULL);
+ int count = return_list_str(pkg->suggests, pkg->h, RPMTAG_RECOMMENDNAME, 0, 0, callback_list_str_xpush, NULL);
if (count == 0)
return_list_str(pkg->suggests, pkg->h, RPMTAG_REQUIRENAME, RPMTAG_REQUIREFLAGS, 0,
callback_list_str_xpush_old_suggests, NULL);