Skip to content

Commit

Permalink
Merge pull request #6261 from kmk3/sort-py-strip-commas
Browse files Browse the repository at this point in the history
build: sort.py: filter empty and duplicate items
  • Loading branch information
kmk3 authored Mar 8, 2024
2 parents 77e7512 + 908e5a1 commit c16f7a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contrib/sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@

def sort_alphabetical(original_items):
items = original_items.split(",")
items.sort()
items = filter(None, set(items))
items = sorted(items)
return ",".join(items)


Expand Down
2 changes: 1 addition & 1 deletion etc/profile-a-l/dnscrypt-proxy.profile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ notv
nou2f
novideo
protocol inet,inet6
seccomp.drop _sysctl,acct,add_key,adjtimex,clock_adjtime,delete_module,fanotify_init,finit_module,get_mempolicy,init_module,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioperm,iopl,kcmp,kexec_file_load,kexec_load,keyctl,lookup_dcookie,mbind,migrate_pages,modify_ldt,mount,move_pages,open_by_handle_at,perf_event_open,perf_event_open,pivot_root,process_vm_readv,process_vm_writev,ptrace,remap_file_pages,request_key,set_mempolicy,swapoff,swapon,sysfs,syslog,umount2,uselib,vmsplice
seccomp.drop _sysctl,acct,add_key,adjtimex,clock_adjtime,delete_module,fanotify_init,finit_module,get_mempolicy,init_module,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioperm,iopl,kcmp,kexec_file_load,kexec_load,keyctl,lookup_dcookie,mbind,migrate_pages,modify_ldt,mount,move_pages,open_by_handle_at,perf_event_open,pivot_root,process_vm_readv,process_vm_writev,ptrace,remap_file_pages,request_key,set_mempolicy,swapoff,swapon,sysfs,syslog,umount2,uselib,vmsplice
tracelog

disable-mnt
Expand Down

0 comments on commit c16f7a2

Please sign in to comment.