~sil2100/ubuntu-archive-tools/kernel-sru-cleanup

« back to all changes in this revision

Viewing changes to process-removals

  • Committer: Martin Pitt
  • Date: 2016-11-15 13:40:36 UTC
  • Revision ID: martin.pitt@canonical.com-20161115134036-i9n0hrc6nrb7mi1g
process-removals: Ignore spurious empty lines, to unbreak reading current removals-all.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    removal = {}
71
71
    for line in removals_file:
72
72
        line = line.strip()
 
73
        # skip over spurious empty lines
 
74
        if not line and state in ("first separtor", "next separator", "date"):
 
75
            continue
73
76
        if line == ("=" * 73):
74
77
            if state == "done":
75
78
                state = "next separator"