[PATCH 4/6] EDSP: add Command-Line field to the Request stanza
---
apt-pkg/edsp.cc | 4 ++++
doc/external-dependency-solver-protocol.txt | 2 ++
2 files changed, 6 insertions(+)
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc
index 38a29fc..93e8176 100644
--- a/apt-pkg/edsp.cc
+++ b/apt-pkg/edsp.cc
@@ -234,6 +234,10 @@ bool EDSP::WriteRequest(pkgDepCache &Cache, FILE* output, bool const Upgrade,
fprintf(output, " %s", a->c_str());
fprintf(output, "\n");
+ if (_config->Exists("Commandline::AsString") == true)
+ fprintf(output, "Command-Line: %s\n",
+ _config->Find("Commandline::AsString").c_str());
+
if (del.empty() == false)
fprintf(output, "Remove: %s\n", del.c_str()+1);
if (inst.empty() == false)
diff --git a/doc/external-dependency-solver-protocol.txt b/doc/external-dependency-solver-protocol.txt
index 477bc23..4eafdcf 100644
--- a/doc/external-dependency-solver-protocol.txt
+++ b/doc/external-dependency-solver-protocol.txt
@@ -129,6 +129,8 @@ The following **configuration fields** are supported in request stanzas:
roughly equivalent to the union of `dpkg --print-architecture` and
`dpkg --print-foreign-architectures`)
+- **Command-Line:** (optional) The full command line used to invoke APT
+
The following **action fields** are supported in request stanzas:
- **Install:** (optional, defaults to the empty string) A space
--
1.8.4.rc3
Reply to: