[packagekit] repo list

Stanislav Visnovsky visnov at suse.cz
Thu Mar 12 06:01:27 PDT 2009

On Utorok 10 March 2009 12:24:48 Richard Hughes wrote:
> On Tue, 2009-03-10 at 04:19 -0700, Daniel Nicoletti wrote:
> > i just would like to have a nice way to set this, as currently we can
> > only enable/disable them. and i think adding repos is very important.
> Okay, so you want to be able to add and remove repos.
> Why do you want the user to do this in the GUI? I would argue that
> adding a package that adds the gpg keys (and the repo definitions) is a
> better way than just adding a random URL and mirror list.

This is distribution-specific, I'd say.

> I do appreciate developers just post random URLs, but the target
> audience of PackageKit isn't exactly a developer.
> If you do want to add this functionality, you need to add methods:
> RepoAdd(repo_id, {other stuff}) and RepoRemove(repo_id)
> ...rather than trying to wedge functionality into the RepoSetData
> method.
> The difficult thing to define is the {other stuff} in a cross distro
> way.

In principle, name (repo_id) and URL should be sufficient. In more elaborate 
cases, we might need type of the repo (if it cannot be autodetected).  But 
type would need to be backend-specific.

Not sure about apt, but for yum and libzypp the rest of repository config has 
sane defaults.


More information about the PackageKit mailing list