From 5241b9145124c1577d00cd8acd57412b4b0b9381 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 29 Aug 2019 18:15:17 +0200 Subject: [PATCH] spec file: cast paths in source.exclude_dirs to lowercase The paths tested against source.exclude_dirs are already cast to lowercase but previously the paths in source.exclude_dirs were left as-is. This could result in confusion if the user lists non-lowercase paths in source.exclude_dirs as they would never match anything. --- buildozer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildozer/__init__.py b/buildozer/__init__.py index 87e179f7c..a3ff12b63 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -781,7 +781,7 @@ def _copy_application_sources(self): for exclude_dir in exclude_dirs: if exclude_dir[-1] != '/': exclude_dir += '/' - if filtered_root.startswith(exclude_dir): + if filtered_root.startswith(exclude_dir.lower()): is_excluded = True break