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

Use "policy" command as a more reliable way to detect missing packages #1036

Merged
merged 2 commits into from
Nov 19, 2023
Merged

Use "policy" command as a more reliable way to detect missing packages #1036

merged 2 commits into from
Nov 19, 2023

Conversation

guss77
Copy link
Contributor

@guss77 guss77 commented Nov 5, 2023

The output from apt-cache policy is much more strict and limited in its variability and content and meant for machine parsing, so it should be preferred over apt-cache show when trying to detect the availability of a package.

This change fixes issue #995 . Though that issue is already fixed in main, I believe the current fix - that greps the output of apt-cache show is not reliable enough and could get us in trouble in the future.

@almereyda
Copy link

This will be good to consider in the next release, which has already grown suitably, with activity on main declining in the last month, inviting for cutting a new version soon:

@89luca89
Copy link
Owner

Thanks! :)

@89luca89 89luca89 merged commit 433b36a into 89luca89:main Nov 19, 2023
8 checks passed
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.

3 participants