From fd975dbb042ee5f1e68935386c1992b96e8a5c3d Mon Sep 17 00:00:00 2001 From: Jan--Henrik Date: Tue, 7 May 2019 20:01:22 +0200 Subject: [PATCH] fixed: made it less fuzzy --- patch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patch.py b/patch.py index 84c3099..6290c5f 100755 --- a/patch.py +++ b/patch.py @@ -6,9 +6,10 @@ orig=open(sys.argv[2],"r") origlines = orig.readlines() for idx,oline in enumerate(origlines): - subst = oline.split('=') + osubst = oline.split('=') for idx1,pline in enumerate(patch): - if subst[0] in pline: + psubst = pline.split('=') + if osubst[0] == psubst[0]: origlines[idx] = pline patch.pop(idx1) origlines += patch