Skip to content

pkg.list_patches in yumpkg.py parses tdnf output on Photon OS#69230

Merged
dwoz merged 1 commit into
saltstack:3006.xfrom
Akm0d:fix/69229-photon-patches
May 28, 2026
Merged

pkg.list_patches in yumpkg.py parses tdnf output on Photon OS#69230
dwoz merged 1 commit into
saltstack:3006.xfrom
Akm0d:fix/69229-photon-patches

Conversation

@Akm0d

@Akm0d Akm0d commented May 26, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Updates yumpkg.py to properly handle the output of tdnf updateinfo list all on Photon OS. It accommodates the lack of leading spaces or status characters (like i ) in tdnf output so that patches can be successfully parsed.

What issues does this PR fix or reference?

Fixes #69229

Previous Behavior

Running salt * pkg.list_patches on a Photon OS minion returned empty or failed to list available patches because the regex parser ignored lines starting flush with patch:.

New Behavior

The yumpkg.py module now correctly identifies and returns available patches on Photon OS, while maintaining full parsing compatibility with RHEL/Rocky/Alma dnf and yum outputs.

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

dwoz
dwoz previously approved these changes May 26, 2026
@Akm0d Akm0d changed the base branch from 3008.x to 3006.x May 28, 2026 00:21
@Akm0d Akm0d changed the base branch from 3006.x to 3008.x May 28, 2026 00:40
@Akm0d Akm0d force-pushed the fix/69229-photon-patches branch from 80cf988 to 7a27f48 Compare May 28, 2026 00:43
@Akm0d Akm0d changed the base branch from 3008.x to 3006.x May 28, 2026 00:43
@Akm0d Akm0d force-pushed the fix/69229-photon-patches branch from 7a27f48 to 4442970 Compare May 28, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants