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

Allow has_dep to use "type" arg with multiply listed dependencies #97

Merged
merged 4 commits into from
Mar 5, 2021
Merged

Allow has_dep to use "type" arg with multiply listed dependencies #97

merged 4 commits into from
Mar 5, 2021

Conversation

richfitz
Copy link
Contributor

If a package is listed multiple times (e.g., Imports and LinkingTo) then $has_dep() with a "type" argument fails on all but the first listed type. This PR changes the implementation of has_dep to fix this.

I cannot make the tests pass locally (R 3.6.1) as the whitespace tests are failing. I see there's a failure on master for appveyor too, so this PR may well report build failure. I see no test regressions though.

@gaborcsardi
Copy link
Member

Thanks and sorry for the long delay!

@gaborcsardi gaborcsardi merged commit dbfaf9a into r-lib:master Mar 5, 2021
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.

2 participants