[PATCH setup 13/15] All, rather than just the first (usually current) version should get dependencies

Jon Turney jon.turney@dronecode.org.uk
Tue May 16 11:59:00 GMT 2017


It seems that dependencies are only recorded against the first version
encountered, which is fortunately usually the current version.  If one were
to install a different version than that the first time a package is
installed, it's dependencies wouldn't be installed.

More zany hijinks from the wacky world of setup :)
---
 IniDBBuilderPackage.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/IniDBBuilderPackage.cc b/IniDBBuilderPackage.cc
index cd5c922..7f500d6 100644
--- a/IniDBBuilderPackage.cc
+++ b/IniDBBuilderPackage.cc
@@ -333,6 +333,9 @@ IniDBBuilderPackage::buildPackageListOperatorVersion (const std::string& aVersio
 void
 IniDBBuilderPackage::add_correct_version()
 {
+  if (currentNodeList)
+    *cbpv.depends() = *currentNodeList;
+
   int merged = 0;
   for (set<packageversion>::iterator n = cp->versions.begin();
        !merged && n != cp->versions.end(); ++n)
-- 
2.12.3



More information about the Cygwin-apps mailing list