Просмотр исходного кода

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

Michael Vogt лет назад: 18
Родитель
Сommit
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);
       // 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