Преглед изворни кода

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

Michael Vogt пре 18 година
родитељ
комит
7730e095a5
1 измењених фајлова са 1 додато и 1 уклоњено
  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