Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > e5225d15d4c63c942296fa9b6ee9bd93 > files > 20

rpm-4.13.0.1-3.1.mga6.src.rpm

here RECOMMENDNEVR doesn't map to OLDSUGGESTNAME as there was also a
RPMSENSE_STRONG flags that was used to turn suggests/enhances into
recommends/supplements (which we didn't use unlike suse).

Thus for mga case, we don' care about mapping against really OLDRECOMMENDSNAME
as we were only using suggests tags

Actually this patch is obsoleted by rpm-mga-suggests.diff as using
RPMTAGRECOMMENDNEVR break suggests in perl-URPM when they're versionnated

diff -up ./lib/tagexts.c.tv ./lib/tagexts.c
--- ./lib/tagexts.c.tv	2014-08-26 19:36:49.291209949 +0200
+++ ./lib/tagexts.c	2014-08-26 19:37:56.722206818 +0200
@@ -792,7 +792,7 @@ static int requirenevrsTag(Header h, rpm
 static int recommendnevrsTag(Header h, rpmtd td, headerGetFlags hgflags)
 {
     return depnevrsTag(h, td, hgflags, RPMTAG_RECOMMENDNAME) ||
-           depnevrsTagFiltered(h, td, hgflags, RPMTAG_OLDSUGGESTSNAME, 1);
+           depnevrsTagFiltered(h, td, hgflags, RPMTAG_OLDSUGGESTSNAME, 0);
 }
 
 static int suggestnevrsTag(Header h, rpmtd td, headerGetFlags hgflags)