File apt-0.5.15lorg3.95.git522-suggest.patch of Package apt
diff -Ndurp apt-0.5.15lorg3.95.git522/apt-pkg/rpm/rpmhandler.cc apt-0.5.15lorg3.95.git522-suggest/apt-pkg/rpm/rpmhandler.cc
--- apt-0.5.15lorg3.95.git522/apt-pkg/rpm/rpmhandler.cc 2011-04-13 21:27:40.000000000 +0300
+++ apt-0.5.15lorg3.95.git522-suggest/apt-pkg/rpm/rpmhandler.cc 2014-10-18 15:24:18.503644615 +0300
@@ -205,9 +205,15 @@ bool RPMHdrHandler::PRCO(unsigned int Ty
case pkgCache::Dep::Provides:
deptype = RPMTAG_PROVIDENAME;
break;
+#if defined(RPMTAG_SUGGESTSNAME) || defined(RPMTAG_SUGGESTNAME)
case pkgCache::Dep::Suggests:
+#ifdef RPMTAG_SUGGESTNAME
+ deptype = RPMTAG_SUGGESTNAME;
+#else
deptype = RPMTAG_SUGGESTSNAME;
+#endif
break;
+#endif
#if 0 // Enhances dep type is not even known to apt, sigh..
case pkgCache::Dep::Enhances:
deptype = RPMTAG_ENHANCES;