Repository navigation
Conversation
This was referenced Oct 15, 2026
larsewi
reviewed
Oct 16, 2026
larsewi
left a comment
Contributor
There was a problem hiding this comment.
Thanks 🚀 Could you change it to use StringContains()? It reads a bit better.
A recorded removal with a version was only reported when it cancelled a recorded installation of the same version. Ticket: none Changelog: Title Signed-off-by: Daniel JB Clark <djbclark@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
djbclark
force-pushed
the
fix/simulate-pkg-removal-with-version
branch
from
October 16, 2026 15:45
086d277 to
eb6cf5f
Compare
Contributor
|
@cf-bottom Jenkins please :) |
larsewi
approved these changes
Oct 16, 2026
|
Sure, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/14818/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-14818/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--simulate=diffdropped a removal with a version unless it cancelled a recorded install of the same version. Theelsebranch meant for "a different version of this package is about to be installed" also caught the common case where nothing was recorded as installed, so removing version 1.0 of a present package vanished from the diff report while--simulate=manifeststill said "would be absent". One-line fix (else→else if (inst_record != NULL)), a regression test that fails without it, and a test for the case the branch still covers:Fork CI: djbclark#44
AI-assisted. I can't vouch for the C syntax beyond a basic level, but I did look at the logic and it seemed sound.
🤖 Generated with Claude Code