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

Commit b7fe4a26 authored by Makoto Onuki's avatar Makoto Onuki Committed by Automerger Merge Worker
Browse files

Merge "Slightly tweak the "extract" script." into main am: 97364210

parents 0fd4ff8b 97364210
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -48,6 +48,7 @@ def main(args):
    with open(outfile, "w") as out:
    with open(outfile, "w") as out:
        out.write(HEADER)
        out.write(HEADER)


        count = 0
        with gzip.open(log) as f:
        with gzip.open(log) as f:
            for line in f:
            for line in f:
                s = line.decode("utf-8")
                s = line.decode("utf-8")
@@ -63,7 +64,8 @@ def main(args):
                if m:
                if m:
                    command = m.groups()[0]
                    command = m.groups()[0]


                    out.write('#========\n')
                    count += 1
                    out.write(f'### Command {count} ========\n')


                    # Show the full command line before executing it.
                    # Show the full command line before executing it.
                    out.write('#echo ' + shlex.quote(command) + '\n')
                    out.write('#echo ' + shlex.quote(command) + '\n')