Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4d3b699 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by android-build-merger
Browse files

Merge \\\\"Avoid matching the same warning line twice.\\\\" am: 0cbba3df am:...

Merge \\\\"Avoid matching the same warning line twice.\\\\" am: 0cbba3df am: 472589e1 am: bac87ed6
am: cb4abef6

Change-Id: I052d18dc5f5997c7d90db617b1de15fe9c2520c2
parents e3909a84 cb4abef6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1977,15 +1977,15 @@ warningpattern = re.compile('.* warning:.*')
compilepatterns()

# read the log file and classify all the warnings
lastmatchedline = ''
warninglines = set()
for line in infile:
    # replace fancy quotes with plain ol' quotes
    line = line.replace("", "'");
    line = line.replace("", "'");
    if warningpattern.match(line):
        if line != lastmatchedline:
        if line not in warninglines:
            classifywarning(line)
            lastmatchedline = line
            warninglines.add(line)
    else:
        # save a little bit of time by only doing this for the first few lines
        if linecounter < 50: