Skip to content

Commit

Permalink
gh-98940: Fix Mac/Extras.install.py File filter bug (#98943)
Browse files Browse the repository at this point in the history
Slightly simplify the script and fix a case issue in the name of ``.DS_Store`` files.

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
zhangbo2012 and sobolevn committed Nov 16, 2022
1 parent e37744f commit ea88d34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Mac/Extras.install.py
Expand Up @@ -9,10 +9,9 @@
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
Expand Down
@@ -0,0 +1 @@
Fix ``Mac/Extras.install.py`` file filter bug.

0 comments on commit ea88d34

Please sign in to comment.