diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-02-16 11:34:21 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-02-16 11:42:29 +0100 |
commit | 2c53226b72e7e58cdd9b42af46cb3d05da89809e (patch) | |
tree | 410208b2e6ff27c6061be96265fd4af8c1f7ce6f /apt-pkg/edsp.cc | |
parent | 0ab13dfe42bf70b3366d0e75885d0c106102914a (diff) |
pass versioned provides to external solvers in EDSP
The EDSP output generated by apt didn't include the versioned provides
information so that every provides looked like an unversioned one in the
eyes of an external resolver.
Diffstat (limited to 'apt-pkg/edsp.cc')
-rw-r--r-- | apt-pkg/edsp.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index bf625cc97..59e8e7ab4 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -121,6 +121,8 @@ static void WriteScenarioDependency( FILE* output, pkgCache::VerIterator const & if (Prv.IsMultiArchImplicit() == true) continue; provides.append(", ").append(Prv.Name()); + if (Prv->ProvideVersion != 0) + provides.append(" (= ").append(Prv.ProvideVersion()).append(")"); } if (provides.empty() == false) fprintf(output, "Provides: %s\n", provides.c_str()+2); |