diff options
author | Michael Vogt <egon@debian-devbox> | 2013-03-01 12:14:42 +0100 |
---|---|---|
committer | Michael Vogt <egon@debian-devbox> | 2013-03-01 12:14:42 +0100 |
commit | fd785e49fa017abbe1871f18af515fdedb3ad183 (patch) | |
tree | ee1080897ddda913436ab48dcd661aeeb3f2b31e /apt-pkg/acquire-item.cc | |
parent | 612300483371c0e53ed0000a838bbfbbc4b919e0 (diff) | |
parent | 75247742b762d5e8dc311600b8b053533695f36d (diff) |
merged lp:~mvo/apt/hash-order
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 665dd427e..89ca6c670 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1741,7 +1741,7 @@ bool pkgAcqArchive::QueueNext() { if(stringcasecmp(ForceHash, "sha512") == 0) ExpectedHash = HashString("SHA512", Parse.SHA512Hash()); - if(stringcasecmp(ForceHash, "sha256") == 0) + else if(stringcasecmp(ForceHash, "sha256") == 0) ExpectedHash = HashString("SHA256", Parse.SHA256Hash()); else if (stringcasecmp(ForceHash, "sha1") == 0) ExpectedHash = HashString("SHA1", Parse.SHA1Hash()); |