From 7d29103a26fed96757b865208d9bdcf2ee8c4ad1 Mon Sep 17 00:00:00 2001
From: "Silas S. Brown" <ssb22@cam.ac.uk>
Date: Thu, 13 May 2010 15:23:26 +0000
Subject: [PATCH] Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@767 29193198-4895-4776-b068-10539e920549
---
 gradint-build/src/frontend.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradint-build/src/frontend.py b/gradint-build/src/frontend.py
index b65fcb4..1de2f88 100644
--- a/gradint-build/src/frontend.py
+++ b/gradint-build/src/frontend.py
@@ -1203,10 +1203,10 @@ def delOrReplace(L2toDel,L1toDel,newL2,newL1,action="delete"):
         thisLine=map(lambda x:x.strip(wsp),l.split("=",len(langs)-1))
         if (langs==[secondLanguage,firstLanguage] and thisLine==[L2toDel.encode('utf-8'),L1toDel.encode('utf-8')]) or (langs==[firstLanguage,secondLanguage] and thisLine==[L1toDel.encode('utf-8'),L2toDel.encode('utf-8')]):
             # delete this line.  and maybe replace it
+            found = 1
             if action=="replace":
                 if langs==[secondLanguage,firstLanguage]: o.write(newL2.encode("utf-8")+"="+newL1.encode("utf-8")+"\n")
                 else: o.write(newL1.encode("utf-8")+"="+newL2.encode("utf-8")+"\n")
-                found = 1
         else: o.write(l+"\n")
     o.close()
     return found
-- 
GitLab