summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-02-25 13:47:09 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-02-25 13:47:09 +0100
commitd9b9e9e2495fa4cfd9f555cd51a394bad2f98894 (patch)
tree99b415b32f88e35e3aae398d5ad1890f861a1097 /cmdline
parent54ce88fd2669a729c89c940be3abc9456d19d542 (diff)
parent9a961efc5cedeb2b7439114df18e8d0201c83fcf (diff)
add sha512 support in the client now as well
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index e93d12c2b..61efa5601 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -2239,6 +2239,8 @@ bool DoDownload(CommandLine &CmdL)
strprintf(descr, _("Downloading %s %s"), Pkg.Name(), Ver.VerStr());
// get the most appropriate hash
HashString hash;
+ if (rec.SHA512Hash() != "")
+ hash = HashString("sha512", rec.SHA512Hash());
if (rec.SHA256Hash() != "")
hash = HashString("sha256", rec.SHA256Hash());
else if (rec.SHA1Hash() != "")