add documentation for /etc/config/wireless and improve formatting
[openwrt.git] / include / package.mk
index 706b38d..87e76be 100644 (file)
@@ -273,7 +273,7 @@ endef
 ifneq ($(strip $(PKG_UNPACK)),)
   define Build/Prepare/Default
        $(PKG_UNPACK)
 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
                $(PATCH) $(PKG_BUILD_DIR) ./patches; \
        fi
   endef
This page took 0.019378 seconds and 4 git commands to generate.