Install yum-arch completion only if yum-arch is installed.

This commit is contained in:
Ville Skyttä 2009-03-30 21:54:30 +03:00
parent aa2851d549
commit 2e56e54580
2 changed files with 4 additions and 3 deletions

View File

@ -92,10 +92,12 @@ _yum()
;; ;;
esac esac
} }
} &&
complete -F _yum $filenames yum complete -F _yum $filenames yum
# yum-arch(8) completion # yum-arch(8) completion
# #
have yum-arch &&
_yum_arch() _yum_arch()
{ {
local cur local cur
@ -112,7 +114,5 @@ _yum_arch()
esac esac
return 0 return 0
} &&
}
complete -F _yum_arch $filenames yum-arch complete -F _yum_arch $filenames yum-arch
}

1
debian/changelog vendored
View File

@ -5,6 +5,7 @@ bash-completion (1:1.x) UNRELEASED; urgency=low
[ Ville Skyttä ] [ Ville Skyttä ]
* Split yum and yum-arch completion into contrib/yum. * Split yum and yum-arch completion into contrib/yum.
* Install yum-arch completion only if yum-arch is installed.
-- David Paleino <d.paleino@gmail.com> Wed, 25 Mar 2009 23:18:24 +0100 -- David Paleino <d.paleino@gmail.com> Wed, 25 Mar 2009 23:18:24 +0100