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: use dpkg-query to check for installs #10

Merged
merged 2 commits into from
Mar 27, 2025
Merged

Conversation

jnsgruk
Copy link
Owner

@jnsgruk jnsgruk commented Mar 27, 2025

Before this commit, oxidizr checked if packages were installed by checking for the word installed in the output of apt list <pkg>, which works fine all the time apt is in English, but not so well if the system uses a different locale.

This commit instead relies upon dpkg-query -s, which fails if the package is not installed.

Fixes #9

Before this commit, `oxidizr` checked if packages
were installed by checking for the word
`installed` in the output of `apt list <pkg>`,
which works fine all the time `apt` is in English,
but not so well if the system uses a different
locale.

This commit instead relies upon `dpkg-query -s`,
which fails if the package is not installed.
@jnsgruk jnsgruk mentioned this pull request Mar 27, 2025
@jnsgruk jnsgruk merged commit 3c2ee28 into main Mar 27, 2025
4 checks passed
@jnsgruk jnsgruk deleted the alternative-check-install branch March 27, 2025 21:21
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.

disabling not working
1 participant