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 | f151b6ee705d605367189e9acb744946c257014d (patch) | |
tree | a4a450679682acefa07a37bea9c1d04816e370e7 /include/package.mk | |
parent | b1bb10bdcf8ee95ae44f23806e91baa81858b54c (diff) | |
download | upstream-f151b6ee705d605367189e9acb744946c257014d.tar.gz upstream-f151b6ee705d605367189e9acb744946c257014d.tar.bz2 upstream-f151b6ee705d605367189e9acb744946c257014d.zip |
check for empty patch directories
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5086 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 |