[latex3-commits] [l3svn] 02/02: l3build: Check for line changes only once

noreply at latex-project.org noreply at latex-project.org
Thu Oct 8 09:48:12 CEST 2015


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 3e1471d9f4bda1a641e4816e89c266e3c7d041d9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Oct 8 08:47:53 2015 +0100

    l3build: Check for line changes only once
---
 l3build/l3build.lua |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index ba9a6d1..36c1c56 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -1682,7 +1682,7 @@ function setversion()
       end
       lines = lines .. line .. os_newline
     end
-    if newlines ~= lines then
+    if changed then
       -- Avoid adding/removing end-of-file newline
       local f = io.open(file, "rb")
       local content = f:read("*all")

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list