From: Felix Fietkau Date: Sat, 14 Oct 2006 15:09:03 +0000 (+0000) Subject: check for empty patch directories X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=4f1b1594a0ab8cc52643fd5c63944cefed3ead63 check for empty patch directories SVN-Revision: 5086 --- 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