diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-14 15:09:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-14 15:09:03 +0000 |
commit | 6779edb40e65ec07fd0ca2db442d53a902e78557 (patch) | |
tree | ca66c57e302a4a7837ad3aee168c2808a04a178c /include/package.mk | |
parent | 688443a803cd1a0cbb92e0182fb1d0181c118f60 (diff) | |
download | upstream-6779edb40e65ec07fd0ca2db442d53a902e78557.tar.gz upstream-6779edb40e65ec07fd0ca2db442d53a902e78557.tar.bz2 upstream-6779edb40e65ec07fd0ca2db442d53a902e78557.zip |
check for empty patch directories
SVN-Revision: 5086
Diffstat (limited to 'include/package.mk')
-rw-r--r-- | include/package.mk | 2 |
1 files changed, 1 insertions, 1 deletions
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 |