diff options
author | Julian Andres Klode <jak@debian.org> | 2010-06-29 17:23:24 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2010-06-29 17:23:24 +0200 |
commit | 3010fb0e069d2fd4c7a6ade4559bfb659bf8f2fb (patch) | |
tree | c5b695589947a7a4a791a884e302bd76674512a6 /apt-pkg/contrib/fileutl.h | |
parent | 9055046760d4e276914e10b96c6065fb885f118b (diff) |
* apt-pkg/contrib/fileutl.cc:
- Make FileFd replace files atomically in WriteTemp mode (for cache, etc).
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-rw-r--r-- | apt-pkg/contrib/fileutl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index 003bd9b83..528725f89 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -34,9 +34,10 @@ class FileFd int iFd; enum LocalFlags {AutoClose = (1<<0),Fail = (1<<1),DelOnFail = (1<<2), - HitEof = (1<<3)}; + HitEof = (1<<3), Replace = (1<<4) }; unsigned long Flags; string FileName; + string TemporaryFileName; public: enum OpenMode {ReadOnly,WriteEmpty,WriteExists,WriteAny,WriteTemp}; |