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 ea88d34de2)

Co-authored-by: zhangbo <zhangbo2012@outlook.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2022-11-16 01:45:31 -08:00 committed by GitHub
parent f4cb8285ba
commit 0a208d5e24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -0,0 +1 @@
Fix ``Mac/Extras.install.py`` file filter bug.