summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-09-25 12:26:22 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-09-25 12:26:22 +0200
commit13a72218012a5f862f691f1016c9c147972ee8ec (patch)
treedc9e177e459e0022e518e520a5a152009766663d
parentca15786a9ae637048e329c159831dd486c54dea7 (diff)
Remove check for "Translation-" from pkgAcqIndex::Custom600Headers()
This unneeded because pkgAcqIndexTrans has its own Custom600Headers() method.
-rw-r--r--apt-pkg/acquire-item.cc5
1 files changed, 1 insertions, 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);