-
Notifications
You must be signed in to change notification settings - Fork 197
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
New DBus API to enable/disable yum repos #1771
Comments
Could also be a more generic ModifyRepo which would allow changing any fields, not just "enabled". I guess it would have to take an array of key value pairs to update. |
Hmm yeah, I think that makes sense in case we want to eventually surface it to the CLI level. Minor bikeshed: I wonder if we should also integrate this as part of In the past, we've held off on things that |
I think for the use case I'm thinking about it would be better to globally enable the repo and not just for one transaction. It would totally make sense to have ModifyYumRepo sounds like a good name to me! |
Yeah, I didn't mean one or the other. I mean actually having both an API for persistent changes and another for transient changes (through |
I'd really like to have |
Sooo ... how about this for starters?
To extend it in the future we can just add more modifiers, such as: or even a generic change-everything: |
Would it make sense to be able to specify multiple repos here? So e.g. one can disable all the repos in one single call? Hmm, or actually maybe we can just have a
Or WDYT how about just centering the API around that? E.g. make |
I guess it makes the API a little bit more complicated to use, but maybe it doesn't matter. It's not like a large number of clients are going to be using the API anyway :) Where we definitely need to have a way to specify multiple repos is the other API addition to
Sure, works for me. That was my original plan actually but then thought I'd try to wriggle in a way to make it slightly easier to use on the client side with set-enabled. |
Yeah, no strong opinion there. Maybe a slightly lean towards keeping |
This allows clients such as gnome-software to enable and disable yum repositories. Closes: coreos#1771
This allows clients such as gnome-software to enable and disable yum repositories. The API is generic, but for now we only allow changing the 'enabled' key. If needed, it's easy to allow changing other settings in the future. See the discussion in the PR for the reasoning. Closes: coreos#1771
Nice, thanks guys! |
I'm looking at making third party layered package install work in gnome-software and I'd need a new DBus API to enable/disable repos for that. Any suggestions what it should look like? I'm happy to implement it.
PackageKit has:
Does that make sense or should it be something else? Where should it live? rpmostree1.OS interface I guess?
The text was updated successfully, but these errors were encountered: