]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/edsp/edspsystem.cc
close server if parsing of header field failed
[apt.git] / apt-pkg / edsp / edspsystem.cc
index c3eea6f105909a3f35db438fc5a799ca3d658385..2a78efe58d6e0702f7919ec6f16bc80a6a5559a7 100644 (file)
@@ -60,11 +60,20 @@ pkgPackageManager *edspLikeSystem::CreatePM(pkgDepCache * /*Cache*/) const
 // System::Initialize - Setup the configuration space..                        /*{{{*/
 bool edspLikeSystem::Initialize(Configuration &Cnf)
 {
+   Cnf.Set("Dir::Log", "/dev/null");
+   // state is included completely in the input files
+   Cnf.Set("Dir::Etc::preferences", "/dev/null");
    Cnf.Set("Dir::Etc::preferencesparts", "/dev/null");
    Cnf.Set("Dir::State::status","/dev/null");
+   Cnf.Set("Dir::State::extended_states","/dev/null");
    Cnf.Set("Dir::State::lists","/dev/null");
+   // do not store an mmap cache
+   Cnf.Set("Dir::Cache::pkgcache", "");
+   Cnf.Set("Dir::Cache::srcpkgcache", "");
+   // the protocols only propose actions, not do them
    Cnf.Set("Debug::NoLocking", "true");
    Cnf.Set("APT::Get::Simulate", "true");
+
    StatusFile.reset(nullptr);
    return true;
 }