]> git.saurik.com Git - apt.git/blobdiff - methods/gzip.cc
fix testcase framework to test correctly for virtual packages
[apt.git] / methods / gzip.cc
index 72e3ac90941fa904ca0de1e7d1ad1e73a9d351cf..5b9b66b50375769f1d528b11c00d116c03e0841d 100644 (file)
@@ -55,7 +55,7 @@ bool GzipMethod::Fetch(FetchItem *Itm)
       return true;
    }
 
-   FileFd To(Itm->DestFile,FileFd::WriteEmpty);   
+   FileFd To(Itm->DestFile,FileFd::WriteAtomic);   
    To.EraseOnFailure();
    if (_error->PendingError() == true)
       return false;