gh-98940: Fix Mac/Extras.install.py File filter bug (#98943)

Slightly simplify the script and fix a case issue in the name of ``.DS_Store`` files.

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
zhangboandNikita Sobolev authored and GitHub committed 2022-11-16 10:17:18 +01:00
1 parent e37744f289
commit ea88d34de2
2 files changed
+4 -4

No files matched your search

+3 -4
View File
@@ -9,10 +9,9 @@ verbose = 1
debug = 0
def isclean(name):
if name == 'CVS': return 0
if name == '.cvsignore': return 0
if name == '.DS_store': return 0
if name == '.svn': return 0
if name in ('CVS', '.cvsignore', '.svn'):
return 0
if name.lower() == '.ds_store': return 0
if name.endswith('~'): return 0
if name.endswith('.BAK'): return 0
if name.endswith('.pyc'): return 0
@@ -0,0 +1 @@
Fix ``Mac/Extras.install.py`` file filter bug.