summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-14 15:09:03 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-14 15:09:03 +0000
commitddbaed92a0bf23a8c6d455a2d3d8d19c4d232cfe (patch)
treea4a450679682acefa07a37bea9c1d04816e370e7
parentf0845034ee1e6babeef0949390122a54dff3a156 (diff)
check for empty patch directories
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5086 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/package.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/package.mk b/include/package.mk
index 706b38d12..87e76be2b 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