aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-03-06 06:00:40 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-03-06 06:00:40 +0000
commitc9d0a7ca4394d563846dc0a3075e1b76e709ba6a (patch)
treea3ba846e56705c4574ba474e61f71de2007455e1
parent9001f0db1697e28d08cdb9a44c87ca5a3085267d (diff)
downloadperl-URPM-c9d0a7ca4394d563846dc0a3075e1b76e709ba6a.tar
perl-URPM-c9d0a7ca4394d563846dc0a3075e1b76e709ba6a.tar.gz
perl-URPM-c9d0a7ca4394d563846dc0a3075e1b76e709ba6a.tar.bz2
perl-URPM-c9d0a7ca4394d563846dc0a3075e1b76e709ba6a.tar.xz
perl-URPM-c9d0a7ca4394d563846dc0a3075e1b76e709ba6a.zip
support versioned suggests
-rw-r--r--NEWS4
-rw-r--r--URPM.xs4
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index cd999bc..782d15c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Version 4.16 - 2011, by Per Øyvind Karlsen
+
+- support versioned suggests
+
Version 4.15 - 19 Feb 2011, by Per Øyvind Karlsen
- fix segfault when there's no provides in synthesis (ie. with src.rpm)
diff --git a/URPM.xs b/URPM.xs
index d8e6126..b03b0a2 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1049,7 +1049,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_SUGGESTSNAME, RPMTAG_SUGGESTSFLAGS, RPMTAG_SUGGESTSVERSION, NULL);
if (pkg->obsoletes == NULL)
pkg->obsoletes = pack_list(pkg->h, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETEVERSION, NULL);
if (pkg->conflicts == NULL)
@@ -2466,7 +2466,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_SUGGESTSNAME, RPMTAG_SUGGESTSFLAGS, RPMTAG_SUGGESTSVERSION, 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);