diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-09-25 12:26:22 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-09-25 12:26:22 +0200 |
commit | 13a72218012a5f862f691f1016c9c147972ee8ec (patch) | |
tree | dc9e177e459e0022e518e520a5a152009766663d /apt-pkg/acquire-item.cc | |
parent | ca15786a9ae637048e329c159831dd486c54dea7 (diff) |
Remove check for "Translation-" from pkgAcqIndex::Custom600Headers()
This unneeded because pkgAcqIndexTrans has its own Custom600Headers()
method.
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 5 |
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); |