WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
225789
report-non-inclusive-language should skip symlinks
https://bugs.webkit.org/show_bug.cgi?id=225789
Summary
report-non-inclusive-language should skip symlinks
Aakash Jain
Reported
2021-05-13 16:48:15 PDT
report-non-inclusive-language should skip symlinks. Currently the script fails with an error if there is a symlink pointing to a non-existing file. Traceback (most recent call last): File "OpenSource/Tools/Scripts/report-non-inclusive-language", line 70, in <module> handle = open(os.path.join(subroot, file), "r") IOError: [Errno 2] No such file or directory: 'testdir/symlink-pointing-to-non-existing-file'
Attachments
Patch
(1.39 KB, patch)
2021-05-13 16:57 PDT
,
Aakash Jain
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Aakash Jain
Comment 1
2021-05-13 16:56:23 PDT
Also most likely the linked file would be checked directly by the script while iterating the directory structure and would result in it being counted twice.
Aakash Jain
Comment 2
2021-05-13 16:57:56 PDT
Created
attachment 428578
[details]
Patch
Darin Adler
Comment 3
2021-05-13 18:27:07 PDT
Comment on
attachment 428578
[details]
Patch How did you discover the need for this? Who’s using this on directories with symlinks in them?
Aakash Jain
Comment 4
2021-05-13 18:31:33 PDT
> How did you discover the need for this?
I discovered this while running this script on an "Internal" repository.
Radar WebKit Bug Importer
Comment 5
2021-05-13 18:34:54 PDT
<
rdar://problem/77998004
>
EWS
Comment 6
2021-05-13 19:06:14 PDT
Committed
r277476
(
237711@main
): <
https://commits.webkit.org/237711@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 428578
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug