X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1bc5d775b911e64e2f1e9e12539496ce13dd0945..7c122f33c4bf8caec1cf8b250d512b65c3c574ca:/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) {