From b1de6cdcb8efc02d896df3f14e3ba9823710b684 Mon Sep 17 00:00:00 2001 From: saville Date: Thu, 5 Sep 2024 16:41:46 -0600 Subject: [PATCH] Fix handling of exclusion lines that are empty --- buildrunner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildrunner/__init__.py b/buildrunner/__init__.py index b38cf27..238a6da 100644 --- a/buildrunner/__init__.py +++ b/buildrunner/__init__.py @@ -245,7 +245,7 @@ def _exclude_working_dir(tarinfo): if tarinfo.name == os.path.basename(self.build_results_dir): return None for _ex in excludes: - if fnmatch.fnmatch(tarinfo.name, _ex): + if _ex and _ex.strip() and fnmatch.fnmatch(tarinfo.name, _ex): return None return tarinfo