diff options
author | Julian Andres Klode <jak@debian.org> | 2015-12-29 15:35:47 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-12-29 16:37:57 +0100 |
commit | d86b8f864cf1cb609297a1164b757ec0174e7596 (patch) | |
tree | f861c19ea738b3d2c5dc9c7cc0fd849b61b2a0ad /apt-pkg/pkgcachegen.cc | |
parent | 25c7a09d4a207bac875817559580f62c9ee07cb5 (diff) |
Do not sync the cache file
Integrity is taken care of by the checksum now.
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r-- | apt-pkg/pkgcachegen.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index e5fd121f8..02ec39e0c 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -1535,7 +1535,6 @@ static bool writeBackMMapToFile(pkgCacheGenerator * const Gen, DynamicMMap * con // Write out the main data if (SCacheF.Write(Map->Data(),Map->Size()) == false) return _error->Error(_("IO Error saving source cache")); - SCacheF.Sync(); // Write out the proper header Gen->GetCache().HeaderP->Dirty = false; @@ -1544,7 +1543,6 @@ static bool writeBackMMapToFile(pkgCacheGenerator * const Gen, DynamicMMap * con SCacheF.Write(Map->Data(),sizeof(*Gen->GetCache().HeaderP)) == false) return _error->Error(_("IO Error saving source cache")); Gen->GetCache().HeaderP->Dirty = true; - SCacheF.Sync(); return true; } static bool loadBackMMapFromFile(std::unique_ptr<pkgCacheGenerator> &Gen, |