From f30b0e34fb4319e7266e52cb5b740f0f5cf438b9 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 14 Dec 2014 04:54:34 +0100 Subject: [PATCH] patchupdate.py: Ignore patch files which do not start with a number. --- debian/tools/patchupdate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/tools/patchupdate.py b/debian/tools/patchupdate.py index 6f584468..70307a55 100755 --- a/debian/tools/patchupdate.py +++ b/debian/tools/patchupdate.py @@ -257,7 +257,9 @@ def read_patchset(revision = None): # Enumerate .patch files in the given directory, enumerate individual patches and affected files for f in sorted(os.listdir(subdirectory)): - if not f.endswith(".patch") or not os.path.isfile(os.path.join(subdirectory, f)): + if not re.match("^[0-9]{4}-.*\\.patch$", f): + continue + if not os.path.isfile(os.path.join(subdirectory, f)): continue patch.files.append(f) for p in patchutils.read_patch(os.path.join(subdirectory, f)):