Dne 1.4.2012 17:47, Saurabh Sood napsal(a):
Hi, I am trying to implement an application in C++ to add a repository (as part of GSoC for Beautiful 1 Click install). I wanted to know which all classes I should look at in the documentation. I was initially trying to implement the same using PackageKit, but it doesnt support adding repositories.
Um... well, it's not officially documented because I have added it as a libzypp backend extension to PackageKit, but it actually _can_ add a new repo. (We need that functionality for Webyast.) The trick is using RepoSetData DBus function with [<id>, 'add', <url>] parameter. This will create a new repository. You need to set the name, priority, etc... via additional calls. See the webyast code example here: https://github.com/webyast/webyast/blob/master/plugins/software/app/models/r... -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org