Skip to content

Fix winrepo-version#68707

Draft
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:fix-68620-winrepo-version
Draft

Fix winrepo-version#68707
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:fix-68620-winrepo-version

Conversation

@harshang03
Copy link

What does this PR do?

Normalize winrepo version keys during winrepo.genrepo so trailing‑zero versions like 3007.10 are preserved and propagated through module/state calls; adds a unit test covering this case.

What issues does this PR fix or reference?

Fixes #68620

Previous Behavior

Numeric YAML version keys like 3007.10 could be loaded as floats and normalized to 3007.1, leading to incorrect package selection/downloads.

New Behavior

Version keys are normalized using repo metadata to preserve the intended string form (e.g., 3007.10), preventing unintended downgrades.

Merge requirements satisfied?

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

Commits signed with GPG?

No

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.

[Bug]: Updating the salt-minion package on Windows (winrepo) results in installing version 3007.1

1 participant