diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-05-30 18:01:47 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-05-30 18:01:47 +0200 |
commit | 1f6cf9e79742ea8e328ef2225b2f5217a9440216 (patch) | |
tree | cb89bb1fd7e98a1a5d644dc9a8fcc00b625492a2 /apt-pkg | |
parent | 003c40d373b8d3b8c6ddd9cc4e0f92dc493b4a60 (diff) |
support parsing EDSP requests Architecture{,s} stanza
Adds also a small testcase for EDSP
Git-Dch: Ignore
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/edsp.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index 52556c1ed..6d1b68c23 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -438,6 +438,13 @@ bool EDSP::ReadRequest(int const input, std::list<std::string> &install, distUpgrade = EDSP::StringToBool(line.c_str() + 14, false); else if (line.compare(0, 11, "Autoremove:") == 0) autoRemove = EDSP::StringToBool(line.c_str() + 12, false); + else if (line.compare(0, 13, "Architecture:") == 0) + _config->Set("APT::Architecture", line.c_str() + 14); + else if (line.compare(0, 14, "Architectures:") == 0) + { + std::string const archs = line.c_str() + 15; + _config->Set("APT::Architectures", SubstVar(archs, " ", ",")); + } else _error->Warning("Unknown line in EDSP Request stanza: %s", line.c_str()); |