From: Michael Vogt Date: Thu, 25 Sep 2014 10:26:22 +0000 (+0200) Subject: Remove check for "Translation-" from pkgAcqIndex::Custom600Headers() X-Git-Tag: 1.1.exp4~54 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/13a72218012a5f862f691f1016c9c147972ee8ec Remove check for "Translation-" from pkgAcqIndex::Custom600Headers() This unneeded because pkgAcqIndexTrans has its own Custom600Headers() method. --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 7ad6a794e..a3e02cb53 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1063,10 +1063,7 @@ string pkgAcqIndex::Custom600Headers() const Final += ".gz"; 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; if (stat(Final.c_str(),&Buf) == 0) msg += "\nLast-Modified: " + TimeRFC1123(Buf.st_mtime);