~ubuntu-core-dev/merge-o-matic/trunk

« back to all changes in this revision

Viewing changes to publish-patches.py

  • Committer: Simon Quigley
  • Date: 2023-07-26 20:35:00 UTC
  • Revision ID: tsimonq2@ubuntu.com-20230726203500-d62zrnqp4x51vty0
Use sed to move everything from blacklist to blocklist, per recent mailing list discussions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    patch_file,
34
34
    patch_list_file,
35
35
    published_file,
36
 
    read_blacklist,
 
36
    read_blocklist,
37
37
    ROOT,
38
38
    run,
39
39
)
63
63
    distro = options.distro
64
64
    dist = options.suite
65
65
 
66
 
    blacklist = read_blacklist()
 
66
    blocklist = read_blocklist()
67
67
 
68
68
    # Write to a new list
69
69
    with tree.AtomicFile(patch_list_file()) as list_file:
73
73
            for source in get_sources(distro, dist, component):
74
74
                package = source["Package"]
75
75
 
76
 
                if package in blacklist:
 
76
                if package in blocklist:
77
77
                    continue
78
78
 
79
79
                # Publish slipped patches in preference to true-base ones