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.
This commit is contained in:
SomberNight 2019-08-29 18:15:17 +02:00 committed by Mathieu Virbel
parent bc11bd6066
commit b6981f8c57

View file

@ -773,7 +773,7 @@ class Buildozer(object):
for exclude_dir in exclude_dirs: for exclude_dir in exclude_dirs:
if exclude_dir[-1] != '/': if exclude_dir[-1] != '/':
exclude_dir += '/' exclude_dir += '/'
if filtered_root.startswith(exclude_dir): if filtered_root.startswith(exclude_dir.lower()):
is_excluded = True is_excluded = True
break break