summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@debian-devbox>2011-08-05 10:48:18 +0200
committerMichael Vogt <egon@debian-devbox>2011-08-05 10:48:18 +0200
commitc5f661b715fbd86fcbca694c44bb8422f01db267 (patch)
tree064181b494c129c394314f7c337e143a04d2101f /apt-pkg/acquire-item.cc
parent8efc4d7b07ea389aa26eb017b66080eee2940653 (diff)
* apt-pkg/acquire-item.{cc,h}:
- do not check for a "Package" tag in optional index targets like the translations index
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index df83d1481..d0fbf948f 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -808,6 +808,9 @@ pkgAcqIndex::pkgAcqIndex(pkgAcquire *Owner, IndexTarget const *Target,
if (CompressionExtension.empty() == false)
CompressionExtension.erase(CompressionExtension.end()-1);
+ if (Target->IsOptional())
+ Verify = false;
+
Init(Target->URI, Target->Description, Target->ShortDesc);
}
/*}}}*/
@@ -905,6 +908,7 @@ void pkgAcqIndex::Done(string Message,unsigned long long Size,string Hash,
/* Verify the index file for correctness (all indexes must
* have a Package field) (LP: #346386) (Closes: #627642) */
+ if (Verify == true)
{
FileFd fd(DestFile, FileFd::ReadOnly);
pkgTagSection sec;