]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
extend the magic which creates the test archive by using FileLists to
[apt.git] / apt-pkg / depcache.cc
index 043185dbcbcc96675a7d7f08c3d4ce7bf0631536..00bf68af11aa784197e7f87bfed23608bfa8b19e 100644 (file)
@@ -227,7 +227,7 @@ bool pkgDepCache::writeStateFile(OpProgress *prog, bool InstalledOnly)      /*{{{*/
    // if it does not exist, create a empty one
    if(!FileExists(state)) 
    {
-      StateFile.Open(state, FileFd::WriteEmpty);
+      StateFile.Open(state, FileFd::WriteAtomic);
       StateFile.Close();
    }