]> git.saurik.com Git - apt.git/blobdiff - methods/bzip2.cc
fix testcase framework to test correctly for virtual packages
[apt.git] / methods / bzip2.cc
index 5da214bfce36decc624ea4e3b4b8c7bc740a827c..19e49828e177fd03ed9c931eaf09c86a216fd969 100644 (file)
@@ -91,7 +91,7 @@ bool Bzip2Method::Fetch(FetchItem *Itm)
    close(GzOut[1]);
    
    FileFd FromGz(GzOut[0]);  // For autoclose   
    close(GzOut[1]);
    
    FileFd FromGz(GzOut[0]);  // For autoclose   
-   FileFd To(Itm->DestFile,FileFd::WriteEmpty);   
+   FileFd To(Itm->DestFile,FileFd::WriteAtomic);   
    To.EraseOnFailure();
    if (_error->PendingError() == true)
       return false;
    To.EraseOnFailure();
    if (_error->PendingError() == true)
       return false;