X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/ea67a49ab6632ab789230e31bd5302a0a5b87dc1..4bec02c237e8e218bc7d4bcf7142e0450480138b:/methods/copy.cc?ds=inline 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) {