X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/972c339a1b05671e3f01b46cece3b323a2a94d61..9abccf4a63b6c887b213678d940fe912233f04c3:/methods/copy.cc 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) {