summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-08-05 12:29:40 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-08-05 12:29:40 +0200
commitb1660aa192ff24747ac247805eda47b84a9cf933 (patch)
treef4c226253e5fb2912fb38a03cc90aeb78872a404 /apt-pkg
parent7ca05341380434ae9e557d16d1ae88d133f0490c (diff)
parent3568a640bd363409cdeb1cb69eaa3261c79f2ff2 (diff)
* test/integration/test-hashsum-verification:
- add regression test for hashsum verification * apt-pkg/acquire-item.cc: - if no Release.gpg file is found, still load the hashes for verification (closes: #636314) and add test
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/acquire-item.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 215615bdd..7eb5920e0 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -1258,8 +1258,9 @@ void pkgAcqMetaIndex::Done(string Message,unsigned long Size,string Hash, /*{{{*
if (SigFile == "")
{
// There was no signature file, so we are finished. Download
- // the indexes without verification.
- QueueIndexes(false);
+ // the indexes and do only hashsum verification
+ MetaIndexParser->Load(DestFile);
+ QueueIndexes(true);
}
else
{