X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/188a6fcf4f13df1fd362a0aff27a23493ddd1ec5..382704d532b9a02237fe5706592858bbffec3862:/apt-pkg/edsp/edspsystem.cc diff --git a/apt-pkg/edsp/edspsystem.cc b/apt-pkg/edsp/edspsystem.cc index c52d537f3..0d967863e 100644 --- a/apt-pkg/edsp/edspsystem.cc +++ b/apt-pkg/edsp/edspsystem.cc @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -57,8 +58,8 @@ public: if (tempDir.empty()) return; - unlink(tempStatesFile.c_str()); - unlink(tempPrefsFile.c_str()); + RemoveFile("DeInitialize", tempStatesFile); + RemoveFile("DeInitialize", tempPrefsFile); rmdir(tempDir.c_str()); } @@ -131,8 +132,8 @@ bool edspSystem::AddStatusFiles(std::vector &List) /*{{{*/ { if (StatusFile == 0) { - if (_config->Find("edsp::scenario", "") == "stdin") - StatusFile = new edspIndex("stdin"); + if (_config->Find("edsp::scenario", "") == "/nonexistent/stdin") + StatusFile = new edspIndex("/nonexistent/stdin"); else StatusFile = new edspIndex(_config->FindFile("edsp::scenario")); }