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

fix(aur_install): fix debug packages being added to deps even if not found #2038

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

Ferdi265
Copy link
Contributor

This PR fixes another edge case with debug packages:

If debug packages are enabled (option debug strip), makepkg --packagelist will always list a -debug package as one of the built packages. However, makepkg will not always build one. If the package does not contain any files from which debug information can be extracted, there will not be a debug package. yay was correctly checking for this with the stat check in getNewTargets, but didn't update the ok variable when it wasn't found, leading to errors finding the packages when setting the install reason later (because they do not exist, but were added to the list anyway).

This PR fixes this by just setting the bool correctly.

@Ferdi265 Ferdi265 requested a review from Jguer as a code owner March 30, 2023 20:52
@Jguer Jguer merged commit 2bdbc3e into Jguer:next Mar 30, 2023
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