hooks/pre-pkg: deal with packages using /etc/bash_completion.d
Detect when it is used and suggest /usr/share/bash-completion/completions instead.
This commit is contained in:
parent
7e2c9f3caf
commit
d1a14f90be
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,13 @@ hook() {
|
|||
fi
|
||||
done
|
||||
|
||||
# Check for bash completions in etc/bash_completion.d
|
||||
# should be on usr/share/bash-completion/completions
|
||||
if [ -d ${PKGDESTDIR}/etc/bash_completion.d ]; then
|
||||
msg_red "${pkgver}: /etc/bash_completion.d is forbidden. Use /usr/share/bash-completion/completions\n"
|
||||
error=1
|
||||
fi
|
||||
|
||||
# Forbid empty packages unless build_style=meta
|
||||
if [ "$build_style" != "meta" ]; then
|
||||
if [ "$(find $PKGDESTDIR/* -maxdepth 1 -type d 2>/dev/null)" = "" ]; then
|
||||
|
|
Loading…
Reference in a new issue