Browse Source

apt-pkg/acquire-item.cc: fix breaking on unreachable networks

Michael Vogt 18 years ago
parent
commit
7730e095a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apt-pkg/acquire-item.cc

+ 1 - 1
apt-pkg/acquire-item.cc

@@ -846,7 +846,7 @@ void pkgAcqMetaSig::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
    {
    {
       Item::Failed(Message,Cnf);
       Item::Failed(Message,Cnf);
       // move the sigfile back on transient network failures 
       // move the sigfile back on transient network failures 
-      if(FileExists(DestFile))
+      if(FileExists(LastGoodSig))
  	 Rename(LastGoodSig,Final);
  	 Rename(LastGoodSig,Final);
 
 
       // set the status back to , Item::Failed likes to reset it
       // set the status back to , Item::Failed likes to reset it