Don't override unchanged

ryzomclassic-develop
kaetemi 3 years ago
parent b594606862
commit 59b5d1228f
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -214,8 +214,8 @@ def processWordsDiff(wk, tl):
if s[1] in wkMap: if s[1] in wkMap:
h = wkMap[s[1]] h = wkMap[s[1]]
l = h + l[len(s[0]):] l = h + l[len(s[0]):]
elif s[0] != "*HASH_VALUE": elif s[0] != "*HASH_VALUE" and len(s[0]) < 16:
l = "0000000000000000" + l[len(s[0]):] l = "_0000000000000000" + l[len(s[0]):]
fw.write(l) fw.write(l)
os.replace(tl + ".new", tl) os.replace(tl + ".new", tl)

Loading…
Cancel
Save