-
Notifications
You must be signed in to change notification settings - Fork 195
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
countme: Force disable Count Me logic in DNF #2746
Conversation
Needs proper testing but as I'm wondering where I should factorize setting this option, I opened a PR to discuss that. |
I think we can likely just change this in the core in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! I think with this we can drop the sed
instructions in the countme docs now too, right?
src/libpriv/rpmostree-core.cxx
Outdated
@@ -842,6 +842,9 @@ rpmostree_context_setup (RpmOstreeContext *self, | |||
DNF_TRANSACTION_FLAG_NODOCS); | |||
} | |||
|
|||
/* Force disable internal libdnf Count Me logic */ | |||
dnf_conf_add_setopt("*.countme", DNF_CONF_COMMANDLINE, "false", NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor/optional: should this be in rpmostree_context_new_system
instead? This is where we disable other global-ish librpm/libdnf bits we know we never want upfront.
Make sure that we do not use the internal Count Me logic in DNF in rpm-ostree as we have our own external implementation that is aware of the different behavior regarding repo handling. See also the discussions in: - rpm-software-management/libdnf#1174 - rpm-software-management/libdnf#1068 - coreos#2671 Also remove the corresponding note in the docs which not needed anymore.
Updated. This still needs testing and I'm wondering how I'll to do that 🤔 |
Hmm probably not worth trying to get a CI test for this. For manual testing, it looks like libdnf already logs debug output when it sets Edit: You can see those log messages with
(Obviously with this PR, you shouldn't see any countme messages in the journal output.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me to merge as is if you've done the manual testing.
jlebon's suggestion is one approach; another may be for us to test via a custom webserver. But IMO not a blocker to merge this.
Did the testing and this one is working as expected. Had countme mentions before, none after:
Used a combination of:
|
Make sure that we do not use the internal Count Me logic in DNF in
rpm-ostree as we have our own external implementation that is aware of
the different behavior regarding repo handling.
See also the discussions in: