Skip to content

Commit ea88d34

Browse files
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 <[email protected]>
1 parent e37744f commit ea88d34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Mac/Extras.install.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
debug = 0
1010

1111
def isclean(name):
12-
if name == 'CVS': return 0
13-
if name == '.cvsignore': return 0
14-
if name == '.DS_store': return 0
15-
if name == '.svn': return 0
12+
if name in ('CVS', '.cvsignore', '.svn'):
13+
return 0
14+
if name.lower() == '.ds_store': return 0
1615
if name.endswith('~'): return 0
1716
if name.endswith('.BAK'): return 0
1817
if name.endswith('.pyc'): return 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ``Mac/Extras.install.py`` file filter bug.

0 commit comments

Comments
 (0)