]> git.e2factory.org Git - e2factory.git/commitdiff
Fix crash on MD5 checksum entry
authorTobias Ulmer <tu@emlix.com>
Mon, 11 Nov 2013 18:58:22 +0000 (19:58 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/digest.lua

index c27eda95110a63778ff3d7f93f6a9461800d4532..1710ae0477c76c72c008fb600f577991939d2edb 100644 (file)
@@ -198,7 +198,7 @@ local function compute_checksum_entry(pos, entry, directory, verify)
         if not computedcs then
             return false, re
         end
-    elseif entry.digest.MD5 then
+    elseif entry.digest == digest.MD5 then
         -- XXX: Fix this for backwards compat.
         return false, err.new("Computing MD5 checksums is currently not "..
             "supported")