Skip to content

Commit 0a208d5

Browse files
miss-islingtonzhangbo2012sobolevn
authored
gh-98940: Fix Mac/Extras.install.py File filter bug (GH-98943)
Slightly simplify the script and fix a case issue in the name of ``.DS_Store`` files. (cherry picked from commit ea88d34) Co-authored-by: zhangbo <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]>
1 parent f4cb828 commit 0a208d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Mac/Extras.install.py

+3-4
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
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)