Skip to content

Check if stdout actually contains "Package:" to surely confirm it's a real package. (Fix #18)#23

Open
michadasis wants to merge 1 commit into
open-source-uom:mainfrom
michadasis:fix-18
Open

Check if stdout actually contains "Package:" to surely confirm it's a real package. (Fix #18)#23
michadasis wants to merge 1 commit into
open-source-uom:mainfrom
michadasis:fix-18

Conversation

@michadasis
Copy link
Copy Markdown
Contributor

Exit code 0 alone is not enough because virtual packages (e.g. freecad) also exit 0 but produce no real package record (In this example freecad has no installation candidate since they moved to snap/flatpak). I made it check that stdout contains an actual "Package:" field to confirm it is a real, installable package.

@michadasis
Copy link
Copy Markdown
Contributor Author

This fixes #18

@michadasis
Copy link
Copy Markdown
Contributor Author

This issue, theoretically speaking shouldn't happen on pacman to begin with.

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.

1 participant