X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=module-tools.py;h=1a7ad8e2c5e8b6f9a7ee1d9196ae7aa8e81e96cb;hb=8d2c02e7c3f5169735fc014277e49190b512cf52;hp=594f81cad6671efca3bcd956c4ab7c6c3a234de5;hpb=2caf6539083f32b51e92e7a984cd9ffe8d5d6805;p=build.git diff --git a/module-tools.py b/module-tools.py index 594f81ca..1a7ad8e2 100755 --- a/module-tools.py +++ b/module-tools.py @@ -380,11 +380,16 @@ that for other purposes than tagging"""%topdir def unignored_lines (self, logfile): result=[] exclude="Tagging module %s"%self.name + white_line_matcher = re.compile("\A\s*\Z") for logline in file(logfile).readlines(): if logline.strip() == Module.svn_magic_line: break - if logline.find(exclude) < 0: - result += [ logline ] + if logline.find(exclude) >= 0: + continue + elif white_line_matcher.match(logline): + continue + else: + result.append(logline.strip()+'\n') return result def insert_changelog (self, logfile, oldtag, newtag):