fix quilt patch check
authorFelix Fietkau <nbd@openwrt.org>
Thu, 4 Oct 2007 17:58:12 +0000 (17:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 4 Oct 2007 17:58:12 +0000 (17:58 +0000)
SVN-Revision: 9121

include/quilt.mk

index daeef94..1b191dd 100644 (file)
@@ -123,7 +123,7 @@ $(STAMP_PATCHED): $(STAMP_PREPARED)
        touch $@
 
 $(STAMP_CHECKED): $(STAMP_PATCHED)
-       if [ -s "$(PKG_BUILD_DIR)/patches/series" ]; then (cd $(PKG_BUILD_DIR); quilt push -a); fi
+       if [ -s "$(PKG_BUILD_DIR)/patches/series" ]; then (cd $(PKG_BUILD_DIR); quilt next >/dev/null 2>&1 && quilt push -a || quilt top >/dev/null 2>&1); fi
        touch $@
 
 define Build/Quilt