summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-08-10 14:59:56 +0200
committerJulian Andres Klode <jak@debian.org>2010-08-10 14:59:56 +0200
commit22041bd2864b8d0b401b45dde9eda4003a11fec4 (patch)
treee3f15fbd4a6486f9048764c850d183feab21adc9 /apt-pkg/depcache.cc
parentfc81e8f2deff3b86738cad78aa491b1b514b3c59 (diff)
apt-pkg, methods: Convert users of WriteEmpty to WriteAtomic.
Diffstat (limited to 'apt-pkg/depcache.cc')
-rw-r--r--apt-pkg/depcache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index 043185dbc..00bf68af1 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -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();
}