]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
* merge patch that enforces stricter https server certificate
[apt.git] / apt-pkg / acquire-item.cc
index 9464ba6961db18f353161e6feffc47d69d283239..aee1872273dafb472449ad821f52aa281d9cf817 100644 (file)
@@ -896,7 +896,7 @@ void pkgAcqMetaSig::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
    {
       Item::Failed(Message,Cnf);
       // move the sigfile back on transient network failures 
    {
       Item::Failed(Message,Cnf);
       // move the sigfile back on transient network failures 
-      if(FileExists(DestFile))
+      if(FileExists(LastGoodSig))
         Rename(LastGoodSig,Final);
 
       // set the status back to , Item::Failed likes to reset it
         Rename(LastGoodSig,Final);
 
       // set the status back to , Item::Failed likes to reset it