diff options
author | Stefano Zacchiroli <zack@debian.org> | 2013-09-04 17:13:49 +0200 |
---|---|---|
committer | Stefano Zacchiroli <zack@debian.org> | 2014-05-04 18:24:24 +0200 |
commit | caa3279367401965cbdd5e3a41c47945f3e263bd (patch) | |
tree | fde295ea1eaaa127db457932ae96d38d65cbc49a /apt-pkg/edsp.cc | |
parent | 25252738d5ad6042b356f2d6bec2ca52ef08a1e2 (diff) |
EDSP: add Architecture(s) multi-arch fields to the Request stanza
Diffstat (limited to 'apt-pkg/edsp.cc')
-rw-r--r-- | apt-pkg/edsp.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index a44d4a4a9..33478dfa6 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -232,6 +232,15 @@ bool EDSP::WriteRequest(pkgDepCache &Cache, FILE* output, bool const Upgrade, req->append(" ").append(Pkg.FullName()); } fprintf(output, "Request: EDSP 0.5\n"); + + const char *arch = _config->Find("APT::Architecture").c_str(); + std::vector<string> archs = APT::Configuration::getArchitectures(); + fprintf(output, "Architecture: %s\n", arch); + fprintf(output, "Architectures:"); + for (std::vector<string>::const_iterator a = archs.begin(); a != archs.end(); ++a) + fprintf(output, " %s", a->c_str()); + fprintf(output, "\n"); + if (del.empty() == false) fprintf(output, "Remove: %s\n", del.c_str()+1); if (inst.empty() == false) |