if [ $# -eq 1 ]; then
# Use supplied script name
PACKAGE_DEF=${SCRDIR}/pkg/${1}
+ CUSTOM_PACKAGE_DEF=yes
else
# Use default script name
PACKAGE_DEF=${SCRDIR}/pkg/$(get_pkg_name ${PACKAGE})
+ CUSTOM_PACKAGE_DEF=no
fi
if [ "x${DECOMPRESS}" = "x1" ]; then
if [ -f ${PACKAGE_DEF} ]; then
echo "Load custom package functions and definitions from ${PACKAGE_DEF}"
source ${PACKAGE_DEF}
+ elif [ "x${CUSTOM_PACKAGE_DEF}" = "xyes" ]; then
+ echo "Missing custom package definition file ${PACKAGE_DEF}"
+ return 1
fi
# Execute pre-patch function if applicable