Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 1.6 kB view raw
1diff --git i/beets/ui/commands.py w/beets/ui/commands.py 2index ad4f7821..5077191d 100755 3--- i/beets/ui/commands.py 4+++ w/beets/ui/commands.py 5@@ -2381,22 +2381,6 @@ default_commands.append(config_cmd) 6 def print_completion(*args): 7 for line in completion_script(default_commands + plugins.commands()): 8 print_(line, end="") 9- if not any(os.path.isfile(syspath(p)) for p in BASH_COMPLETION_PATHS): 10- log.warning( 11- "Warning: Unable to find the bash-completion package. " 12- "Command line completion might not work." 13- ) 14- 15- 16-BASH_COMPLETION_PATHS = [ 17- b"/etc/bash_completion", 18- b"/usr/share/bash-completion/bash_completion", 19- b"/usr/local/share/bash-completion/bash_completion", 20- # SmartOS 21- b"/opt/local/share/bash-completion/bash_completion", 22- # Homebrew (before bash-completion2) 23- b"/usr/local/etc/bash_completion", 24-] 25 26 27 def completion_script(commands): 28diff --git i/test/test_ui.py w/test/test_ui.py 29index cae86148..faf266a8 100644 30--- i/test/test_ui.py 31+++ w/test/test_ui.py 32@@ -1434,12 +1434,7 @@ class CompletionTest(_common.TestCase, TestHelper): 33 ) 34 35 # Load bash_completion library. 36- for path in commands.BASH_COMPLETION_PATHS: 37- if os.path.exists(syspath(path)): 38- bash_completion = path 39- break 40- else: 41- self.skipTest("bash-completion script not found") 42+ self.skipTest("bash-completion script not found") 43 try: 44 with open(util.syspath(bash_completion), "rb") as f: 45 tester.stdin.writelines(f)