summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-14 15:09:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-14 15:09:03 +0000
commit6779edb40e65ec07fd0ca2db442d53a902e78557 (patch)
treeca66c57e302a4a7837ad3aee168c2808a04a178c
parent688443a803cd1a0cbb92e0182fb1d0181c118f60 (diff)
downloadmtk-20170518-6779edb40e65ec07fd0ca2db442d53a902e78557.zip
mtk-20170518-6779edb40e65ec07fd0ca2db442d53a902e78557.tar.gz
mtk-20170518-6779edb40e65ec07fd0ca2db442d53a902e78557.tar.bz2
check for empty patch directories
SVN-Revision: 5086
-rw-r--r--include/package.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/package.mk b/include/package.mk
index 706b38d..87e76be 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -273,7 +273,7 @@ endef
ifneq ($(strip $(PKG_UNPACK)),)
define Build/Prepare/Default
$(PKG_UNPACK)
- @if [ -d ./patches ]; then \
+ @if [ -d ./patches -a "$$$$(ls ./patches | wc -l)" -gt 0 ]; then \
$(PATCH) $(PKG_BUILD_DIR) ./patches; \
fi
endef