summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@debian-devbox>2013-03-01 12:14:42 +0100
committerMichael Vogt <egon@debian-devbox>2013-03-01 12:14:42 +0100
commitfd785e49fa017abbe1871f18af515fdedb3ad183 (patch)
treeee1080897ddda913436ab48dcd661aeeb3f2b31e /cmdline/apt-get.cc
parent612300483371c0e53ed0000a838bbfbbc4b919e0 (diff)
parent75247742b762d5e8dc311600b8b053533695f36d (diff)
merged lp:~mvo/apt/hash-order
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 1bb981b20..e3c74a099 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -2395,7 +2395,7 @@ bool DoDownload(CommandLine &CmdL)
HashString hash;
if (rec.SHA512Hash() != "")
hash = HashString("sha512", rec.SHA512Hash());
- if (rec.SHA256Hash() != "")
+ else if (rec.SHA256Hash() != "")
hash = HashString("sha256", rec.SHA256Hash());
else if (rec.SHA1Hash() != "")
hash = HashString("sha1", rec.SHA1Hash());