Reindent.

git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1660 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Ville Skyttä 2009-10-02 18:05:03 +00:00
parent 9f9bc75f3f
commit 4586a3a722
1 changed files with 58 additions and 57 deletions

View File

@ -1,7 +1,4 @@
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
# ex: ts=8 sw=8 et filetype=sh
#
# bash-completion add-on for rpmlint(1)
# bash-completion add-on for rpmlint
# http://bash-completion.alioth.debian.org/
_rpmlint()
@ -24,17 +21,15 @@ _rpmlint()
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--info -I --check --all --checkdir
--help --verbose --extractdir --version --noexception
--file --option' -- "$cur" ) )
else
# Installed packages completion is slow, do it only if arg
# does not look like a path.
# Installed packages completion is slow, do it only if arg does not
# look like a path.
if [[ "$cur" != */* ]]; then
type _rpm_installed_packages &>/dev/null && \
_rpm_installed_packages
type _rpm_installed_packages &>/dev/null && _rpm_installed_packages
fi
_filedir '@(rpm|spec)'
fi
@ -48,8 +43,7 @@ _rpmdiff()
case $3 in
-i|--ignore)
COMPREPLY=( $( compgen -W 'S M 5 D N L V U G F T' \
-- $cur ) )
COMPREPLY=( $( compgen -W 'S M 5 D N L V U G F T' -- $cur ) )
return 0
;;
-h|--help)
@ -60,13 +54,20 @@ _rpmdiff()
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-h --help -i --ignore' -- "$cur" ) )
else
# Installed packages completion is slow, do it only if arg
# does not look like a path.
# Installed packages completion is slow, do it only if arg does not
# look like a path.
if [[ "$cur" != */* ]]; then
type _rpm_installed_packages &>/dev/null && \
_rpm_installed_packages
type _rpm_installed_packages &>/dev/null && _rpm_installed_packages
fi
_filedir rpm
fi
}
complete -F _rpmdiff -o filenames rpmdiff
# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh