Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: sort.py: filter empty and duplicate items #6261

Merged
merged 1 commit into from
Mar 8, 2024

Commits on Mar 3, 2024

  1. build: sort.py: filter empty and duplicate items

    Note: This seems to already be done for `protocol` lines.
    
    Before:
    
        $ ./contrib/sort.py test.profile
        sort.py: checking 1 profile(s)...
        test.profile:1:-private-etc ,,bar,,foo,,bar,,,
        test.profile:1:+private-etc ,,,,,,,bar,bar,foo
        test.profile:2:-protocol ,,unix,,bluetooth,,unix,,inet,,,
        test.profile:2:+protocol unix,inet,bluetooth
        [ Fixed ] test.profile
    
    After:
    
        $ ./contrib/sort.py test.profile
        sort.py: checking 1 profile(s)...
        test.profile:1:-private-etc ,,bar,,foo,,bar,,,
        test.profile:1:+private-etc bar,foo
        test.profile:2:-protocol ,,unix,,bluetooth,,unix,,inet,,,
        test.profile:2:+protocol unix,inet,bluetooth
        [ Fixed ] test.profile
    kmk3 committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    908e5a1 View commit details
    Browse the repository at this point in the history