From 13a72218012a5f862f691f1016c9c147972ee8ec Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 25 Sep 2014 12:26:22 +0200 Subject: Remove check for "Translation-" from pkgAcqIndex::Custom600Headers() This unneeded because pkgAcqIndexTrans has its own Custom600Headers() method. --- apt-pkg/acquire-item.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); -- cgit v1.2.3