- silence some apt-cache complaints in various completions

(patch by Rafael Sepúlveda <drs@gnulinux.org.mx>)
This commit is contained in:
ianmacd 2002-10-05 06:08:53 +00:00
parent 13913a046e
commit b9a46e32db

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.423 2002/10/05 08:03:21 ianmacd Exp $
# $Id: bash_completion,v 1.424 2002/10/05 08:08:53 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1441,7 +1441,7 @@ _apt_get()
if [ -n "$special" ]; then
case $special in
@(install|source|build-dep))
COMPREPLY=( $( apt-cache pkgnames $cur ) )
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
return 0
;;
remove)
@ -1518,7 +1518,7 @@ _apt_cache()
return 0
;;
show?(pkg)|depends|dotty|policy)
COMPREPLY=( $( apt-cache pkgnames $cur ) )
COMPREPLY=( $( apt-cache pkgnames $cur 2>/dev/null) )
return 0
;;
esac
@ -1584,7 +1584,7 @@ _aptitude()
if [[ -n "$special" ]]; then
case $special in
@(install|hold|markauto|unmarkauto|dist-upgrade|download))
COMPREPLY=( $( apt-cache pkgnames $cur ) )
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
return 0
;;
@(purge|remove))
@ -1642,7 +1642,7 @@ _apt_build()
if [ -n "$special" ]; then
case $special in
@(install|source|info))
COMPREPLY=( $( apt-cache pkgnames $cur ) )
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
return 0
;;
remove)
@ -2834,7 +2834,7 @@ _dpkg()
return 0
;;
-@(s|p|l|-@(status|print-avail|list)))
COMPREPLY=( $( apt-cache pkgnames $cur ) )
COMPREPLY=( $( apt-cache pkgnames $cur 2>/dev/null ) )
return 0
;;
-@(S|-search))