common: move expand_destdir to environment/pkg; change lint check.
This commit is contained in:
parent
67757b5708
commit
ef24b7b7cc
4 changed files with 23 additions and 15 deletions
|
@ -1,5 +1,7 @@
|
|||
# This hook checks for common issues related to void.
|
||||
|
||||
source ${XBPS_COMMONDIR}/environment/pkg/extglob.sh
|
||||
|
||||
hook() {
|
||||
local error=0 filename= rev= libname= conflictPkg= conflictFile=
|
||||
local conflictRev= ignore= found= mapshlibs=$XBPS_COMMONDIR/shlibs
|
||||
|
@ -25,8 +27,8 @@ hook() {
|
|||
done
|
||||
|
||||
# Check that configuration files really exist.
|
||||
for f in ${conf_files}; do
|
||||
if [ ! -f ${PKGDESTDIR}/${f} ]; then
|
||||
for f in $(expand_destdir ${conf_files}); do
|
||||
if [ ! -f "${PKGDESTDIR}/${f}" ]; then
|
||||
msg_red "${pkgver}: '$f' configuration file not in PKGDESTDIR!\n"
|
||||
error=1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue