From 2d1f978cb0d80f379521294e190acc2c8dad8382 Mon Sep 17 00:00:00 2001 From: "gobo72@gmail.com" Date: Sat, 11 Aug 2012 19:39:23 +0000 Subject: [PATCH] =?utf8?q?Retourne=20une=20erreur=20si=20un=20custom=20scr?= =?utf8?q?ipt=20est=20sp=C3=A9cifi=C3=A9=20mais=20n'existe=20pas.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- functions/ipkg | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.20.1