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

Remove check for "Translation-" from pkgAcqIndex::Custom600Headers()

This unneeded because pkgAcqIndexTrans has its own Custom600Headers()
method.
Michael Vogt лет назад: 11
Родитель
Сommit
13a7221801
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      apt-pkg/acquire-item.cc

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

@@ -1063,10 +1063,7 @@ string pkgAcqIndex::Custom600Headers() const
       Final += ".gz";
       Final += ".gz";
    
    
    string msg = "\nIndex-File: true";
    string msg = "\nIndex-File: true";
-   // FIXME: this really should use "IndexTarget::IsOptional()" but that
-   //        seems to be difficult without breaking ABI
-   if (ShortDesc().find("Translation") != 0)
-      msg += "\nFail-Ignore: true";
+
    struct stat Buf;
    struct stat Buf;
    if (stat(Final.c_str(),&Buf) == 0)
    if (stat(Final.c_str(),&Buf) == 0)
       msg += "\nLast-Modified: " + TimeRFC1123(Buf.st_mtime);
       msg += "\nLast-Modified: " + TimeRFC1123(Buf.st_mtime);