From 6779edb40e65ec07fd0ca2db442d53a902e78557 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 14 Oct 2006 15:09:03 +0000 Subject: [PATCH] check for empty patch directories SVN-Revision: 5086 --- include/package.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/package.mk b/include/package.mk index 706b38d12a..87e76be2b5 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 -- 2.25.1