]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/edsp/edspsystem.cc
prepare-release: ignore newer version symbols
[apt.git] / apt-pkg / edsp / edspsystem.cc
index c52d537f34ca3ad10899397f6b3abc379ac20abf..0d967863ef86cc6b198a2a685ef5ced99f2df988 100644 (file)
@@ -20,6 +20,7 @@
 #include <apt-pkg/fileutl.h>
 
 #include <stddef.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 #include <string>
@@ -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<pkgIndexFile *> &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"));
    }