Skip to content

Commit

Permalink
Merge pull request #160 from bluesliverx/main
Browse files Browse the repository at this point in the history
Fix handling of exclusion lines that are empty
  • Loading branch information
shanejbrown authored Sep 6, 2024
2 parents 45fedec + b1de6cd commit c10a57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildrunner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c10a57a

Please sign in to comment.