aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules/patch.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/patch.mk b/rules/patch.mk
index 36dbb66..7c6951d 100644
--- a/rules/patch.mk
+++ b/rules/patch.mk
@@ -27,7 +27,7 @@ ifeq (,$(__patch_mk))
build-depends += gnu-patch
patchdir = $(CURDIR)/patches
-patches = $(shell [ -d "$(patchdir)" ] && cd "$(patchdir)" && ls -1 | sort)
+patches = $(shell [ -d "$(patchdir)" ] && cd "$(patchdir)" && grep -v '^\#' series || ls -1 | sort)
# Try different path levels:
applied-%-stamp: $(patchdir)/% unpack-stamp