summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorzhangbo <zhangbo2012@outlook.com>2022-11-16 09:17:18 (GMT)
committerGitHub <noreply@github.com>2022-11-16 09:17:18 (GMT)
commitea88d34de27ba2b3acaeb03c7dc7829dff40ea5c (patch)
tree092845107b7847e2ce9c35e49f80c4bc27375696 /Mac
parente37744f289af00c6f6eba83f7abfb932b63de9e0 (diff)
downloadcpython-ea88d34de27ba2b3acaeb03c7dc7829dff40ea5c.zip
cpython-ea88d34de27ba2b3acaeb03c7dc7829dff40ea5c.tar.gz
cpython-ea88d34de27ba2b3acaeb03c7dc7829dff40ea5c.tar.bz2
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>
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Extras.install.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Mac/Extras.install.py b/Mac/Extras.install.py
index ab1af71..41bfa53 100644
--- a/Mac/Extras.install.py
+++ b/Mac/Extras.install.py
@@ -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