X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/5292fdba6e4cf5846720b2af69129d30d02ab8ad..4c6cf49317769725fee34a132c52ec1fe076b8b5:/methods/copy.cc?ds=sidebyside diff --git a/methods/copy.cc b/methods/copy.cc index 027b59f46..a6bb372a3 100644 --- a/methods/copy.cc +++ b/methods/copy.cc @@ -52,7 +52,7 @@ bool CopyMethod::Fetch(FetchItem *Itm) // See if the file exists FileFd From(File,FileFd::ReadOnly); - FileFd To(Itm->DestFile,FileFd::WriteEmpty); + FileFd To(Itm->DestFile,FileFd::WriteAtomic); To.EraseOnFailure(); if (_error->PendingError() == true) {