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

Change the delimeters to prevent possible tracebacks on some packages with dpkg_lowpkg #62519

Merged
merged 4 commits into from
Sep 7, 2022

Conversation

vzhestkov
Copy link
Contributor

What does this PR do?

dpkg_lowpkg is using ------ and ====== as a delimiters while calling dpkg-query to get the information about the packages. The problem here that some of the packages have such delimiters in the description field what causing tracebacks on attempt to get the package information.

The packages causing this issues (tested on Ubuntu 20.04): libencode-eucjpms-perl and owncloud-client.

Previous Behavior

Possible tracebacks in case if there is a package with ------ or ====== in the description is installed on the minion.

New Behavior

Normal behavior

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@vzhestkov vzhestkov requested a review from a team as a code owner August 23, 2022 07:08
@vzhestkov vzhestkov requested review from garethgreenaway and removed request for a team August 23, 2022 07:08
@vzhestkov vzhestkov force-pushed the fix-dpkg-_get_pkg_info branch 6 times, most recently from f95416d to e83aab6 Compare August 23, 2022 09:39
@garethgreenaway garethgreenaway added the Sulfur v3006.0 release code name and version label Sep 2, 2022
@garethgreenaway garethgreenaway added this to the Sulphur v3006.0 milestone Sep 2, 2022
@Ch3LL Ch3LL merged commit af52490 into saltstack:master Sep 7, 2022
agraul pushed a commit to agraul/salt that referenced this pull request Jan 27, 2025
… with dpkg_lowpkg

* Use another separator on query to dpkg-query

* Fix the test test_dpkg_lowpkg::test_info

BACKPORT-UPSTREAM=saltstack#62519
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sulfur v3006.0 release code name and version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants