check for empty patch directories
authorFelix Fietkau <nbd@openwrt.org>
Sat, 14 Oct 2006 15:09:03 +0000 (15:09 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 14 Oct 2006 15:09:03 +0000 (15:09 +0000)
SVN-Revision: 5086

include/package.mk

index 706b38d..87e76be 100644 (file)
@@ -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