]> git.e2factory.org Git - e2factory.git/commitdiff
new-source: print checksum of file
authorTobias Ulmer <tu@emlix.com>
Fri, 4 Nov 2016 13:44:15 +0000 (14:44 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2-new-source.lua

index 115a23b83139ed16493cb7b8dd0b4a61fcf82c19..1caafe207696b0411aae8e54fbc83e91f142da57 100644 (file)
@@ -189,6 +189,12 @@ local function new_files_source(c, server, location, source_file, checksum_file,
         end
     end
 
+    -- print checksum
+    if source.dtentry.digest == digest.SHA1 then
+        assert(#source.dtentry.checksum == 40)
+        e2lib.logf(1, "sha1 = \"%s\"", source.dtentry.checksum)
+    end
+
     if not cache.writeback_enabled(c, server) then
         e2lib.warnf("WOTHER", "enabling writeback for server: %s",
             server)