projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ajout GNUstep à /etc/skel.
[hvlinux.git]
/
functions
/
ipkg
diff --git
a/functions/ipkg
b/functions/ipkg
index
8ac0a09
..
22f1803
100644
(file)
--- 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}
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})
else
# Use default script name
PACKAGE_DEF=${SCRDIR}/pkg/$(get_pkg_name ${PACKAGE})
+ CUSTOM_PACKAGE_DEF=no
fi
if [ "x${DECOMPRESS}" = "x1" ]; then
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}
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
fi
# Execute pre-patch function if applicable
@@
-147,7
+152,9
@@
ipkg_script()
hvpatch_pre
fi
hvpatch_pre
fi
- hvpatch
+ if [ "x${DECOMPRESS}" = "x1" ]; then
+ hvpatch
+ fi
# Execute pre-configure function if applicable
if function_exists hvconfig_pre ; then
# Execute pre-configure function if applicable
if function_exists hvconfig_pre ; then