diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2013-01-14 06:31:51 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2013-01-14 06:31:51 +0100 |
commit | ee5f5d257c6ad59c9b3ef8c55d61ffb293be847c (patch) | |
tree | 69708525de8d32fe4b9d1a9e049ddd38e90f4395 /cmdline | |
parent | 72663b44179f4c6f3ec2e4ec25d8df3c4590b222 (diff) |
ensure sha512 is really used when available (thanks to Tyler Hicks )
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 2 |
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()); |