Merge branch 'master' into tesseract
[termux-packages] / packages / apt / completions-bash-apt.patch
1 diff -u -r ../apt-1.2/completions/bash/apt ./completions/bash/apt
2 --- ../apt-1.2/completions/bash/apt 2016-01-15 13:53:52.000000000 -0500
3 +++ ./completions/bash/apt 2016-01-25 06:15:46.747246153 -0500
4 @@ -2,7 +2,7 @@
5
6 _apt()
7 {
8 - local sourcesdir="/etc/apt/sources.list.d"
9 + local sourcesdir="@TERMUX_PREFIX@/etc/apt/sources.list.d"
10 local cur prev words cword
11 _init_completion || return
12
13 @@ -66,14 +66,9 @@
14 if [[ -n $command ]]; then
15 case $command in
16 remove|purge|autoremove)
17 - if [[ -f /etc/debian_version ]]; then
18 # Debian system
19 COMPREPLY=( $( \
20 _xfunc dpkg _comp_dpkg_installed_packages $cur ) )
21 - else
22 - # assume RPM based
23 - _xfunc rpm _rpm_installed_packages
24 - fi
25 return 0
26 ;;
27 show|list)