]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-dump-solver.cc
Do not run pre*export* functions in the pre*build* hook
[apt.git] / cmdline / apt-dump-solver.cc
index 47b515be5cb70abbd6c8ad63e7495bb8c1e94211..27592f22eb5f3e5258785f27cd9fd3300735f53d 100644 (file)
@@ -53,8 +53,7 @@ int main(int argc,const char *argv[])                                 /*{{{*/
           return 0;
        }
 
-       if (strcmp(filename, "/dev/null") != 0)
-          unlink(filename);
+       RemoveFile(argv[0], filename);
        FileFd input, output;
        if (input.OpenDescriptor(STDIN_FILENO, FileFd::ReadOnly) == false ||
              output.Open(filename, FileFd::WriteOnly | FileFd::Create | FileFd::Exclusive, 0600) == false ||