From 0b852bc75a65a66399b042372fa892d4f7f64de6 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 22 May 2019 19:08:13 +0700 Subject: [PATCH] Update data files only if the contents have actually changed --- build-data/BuildData.groovy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build-data/BuildData.groovy b/build-data/BuildData.groovy index bf601f68..a18e8641 100755 --- a/build-data/BuildData.groovy +++ b/build-data/BuildData.groovy @@ -58,13 +58,13 @@ def pack(file, lines) { lines.each{ writer.append(it).append('\n') } } } - } else { - log.warning "[NOT MODIFIED] $file [$previousHash]" - } - def rows = lines.size() - def columns = lines.collect{ it.split(/\t/).length }.max() - log.info "${file.canonicalFile} ($rows rows, $columns columns)" + def rows = lines.size() + def columns = lines.collect{ it.split(/\t/).length }.max() + log.info "${file.canonicalFile} ($rows rows, $columns columns)" + } else { + log.finest "[NOT MODIFIED] $file [$previousHash]" + } } def hash(file) {