scripts/unpack: add PKG_SKIP_PATCHES support

This commit is contained in:
MilhouseVH 2018-02-25 11:39:58 +00:00
parent 3d1713527c
commit afcecf7b0d

View File

@ -106,6 +106,7 @@ if [ -d "$SOURCES/$1" -o -d "$PKG_DIR/sources" ]; then
post_unpack post_unpack
fi fi
if [ "${PKG_SKIP_PATCHES}" != "yes" ]; then
if [ "$(type -t pre_patch)" = "function" ]; then if [ "$(type -t pre_patch)" = "function" ]; then
pre_patch pre_patch
fi fi
@ -180,6 +181,7 @@ if [ -d "$SOURCES/$1" -o -d "$PKG_DIR/sources" ]; then
if [ "$(type -t post_patch)" = "function" ]; then if [ "$(type -t post_patch)" = "function" ]; then
post_patch post_patch
fi fi
fi
if [ ! "$PKG_NAME" == "configtools" ] ; then if [ ! "$PKG_NAME" == "configtools" ] ; then
for config in `find $PKG_BUILD -name config.guess | sed 's/config.guess//'`; do for config in `find $PKG_BUILD -name config.guess | sed 's/config.guess//'`; do