diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-06-08 12:03:34 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-06-08 12:03:34 +0200 |
commit | 12cd178d6eb61306cc99e5e07c463c800d406771 (patch) | |
tree | 90941ebf0adb1c4b3ef9ca780a2b42cb1f2dfb16 /cmdline/apt-get.cc | |
parent | d953d210bb54accb416f2144104b79dcd29198ba (diff) | |
parent | 31693a8ff0fe593879ed30a4dde8f9be5b0859bf (diff) |
merge lp:~mvo/apt/sha512-template to add support for sha512
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r-- | cmdline/apt-get.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 65eaef0d8..66ebd30b8 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -2299,6 +2299,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() != "") |