summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <egon@debian-devbox>2011-08-05 11:00:46 +0200
committerMichael Vogt <egon@debian-devbox>2011-08-05 11:00:46 +0200
commit97efc27f0723f09405d7a1836ab21c2e2948eb10 (patch)
treeef363ac90292c323813295b381329f7af0914de3 /apt-pkg
parentc5f661b715fbd86fcbca694c44bb8422f01db267 (diff)
apt-pkg/acquire-item.cc: always init Verify
Diffstat (limited to 'apt-pkg')
-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 d0fbf948f..d8fa1f828 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -808,8 +808,12 @@ pkgAcqIndex::pkgAcqIndex(pkgAcquire *Owner, IndexTarget const *Target,
if (CompressionExtension.empty() == false)
CompressionExtension.erase(CompressionExtension.end()-1);
+ // only verify non-optional targets, see acquire-item.h for a FIXME
+ // to make this more flexible
if (Target->IsOptional())
Verify = false;
+ else
+ Verify = true;
Init(Target->URI, Target->Description, Target->ShortDesc);
}