diff --git a/debian/rules b/debian/rules index 6bc93b0c..05628bee 100755 --- a/debian/rules +++ b/debian/rules @@ -64,8 +64,8 @@ ifneq "$(wildcard /usr/share/misc/config.guess)" "" endif # Apply our patches to Wine - for DIR in $(find $(CURDIR)/patches/ -type d | sort); do \ - for FILE in $(ls $$DIR | sort); do \ + for DIR in $$(find $(CURDIR)/patches/ -type d | sort); do \ + for FILE in $$(ls $$DIR | sort | grep '\.patch$$'); do \ patch -N -p0 --strip=1 < $$DIR/$$FILE || exit 1; \ done \ done