X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions%2Fipkg;fp=functions%2Fipkg;h=f948ac3a4c3406719650a8c091f18836f0e21e24;hb=2d1f978cb0d80f379521294e190acc2c8dad8382;hp=8ac0a099ed8c35bc006c8deff39654103486e22e;hpb=83e6cd311887c77c34b40c30966e957b77bab3b9;p=hvlinux.git diff --git a/functions/ipkg b/functions/ipkg index 8ac0a09..f948ac3 100644 --- a/functions/ipkg +++ b/functions/ipkg @@ -125,9 +125,11 @@ ipkg_script() 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 @@ -139,6 +141,9 @@ ipkg_script() 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