vim: Update to latest patch level
[termux-packages] / packages / fish / create_manpage_completions.py.patch
CommitLineData
50a1e680
FF
1diff -u -r ../fish-2.4.0/share/tools/create_manpage_completions.py ./share/tools/create_manpage_completions.py
2--- ../fish-2.4.0/share/tools/create_manpage_completions.py 2016-11-07 22:20:54.000000000 -0500
3+++ ./share/tools/create_manpage_completions.py 2016-12-23 15:09:00.703224799 -0500
4@@ -857,12 +857,7 @@
5 def get_paths_from_manpath():
6 # Return all the paths to man(1) and man(8) files in the manpath
7 import subprocess, os
8- proc = subprocess.Popen(['manpath'], stdout=subprocess.PIPE)
9- manpath, err_data = proc.communicate()
10- parent_paths = manpath.decode().strip().split(':')
11- if not parent_paths:
12- sys.stderr.write("Unable to get the manpath (tried manpath)\n")
13- sys.exit(-1)
14+ parent_paths = ['@TERMUX_PREFIX@/share/man']
15 result = []
16 for parent_path in parent_paths:
17 for section in ['man1', 'man6', 'man8']: