Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check Perl integrity with -e #22400

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from
Open

Conversation

hongjinghao
Copy link

Validating Perl integrity should only be related to file existence. It should not fail due to other errors in ls.Therefore, use -e as a replacement for ls.
fix:#22398

@jkeenan
Copy link
Contributor

jkeenan commented Jul 13, 2024

@Tux, @doughera88, can you take a look at this ticket (and the one cited herein)? Thanks.

@doughera88
Copy link
Contributor

doughera88 commented Jul 16, 2024 via email

@tonycoz
Copy link
Contributor

tonycoz commented Jul 24, 2024

looks wrong to me for the cases where the user is building outside the source tree (with -Dmksymlinks). More simply, if you are not going to be using 'ls' then I think the directory change is unnecessary and simply looking for

if [ ! -e "$rsrc/$file" ]; then 

would be sufficient.

It looks like he's done that change, and a build with -Dmksymlinks only failed the AUTHORS check.

I am curious about which errors from ls this fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants