Mailinglist Archive: zypp-devel (11 mails)
| < Previous | Next > |
Re: [zypp-devel] libzypp related queries
- From: Ladislav Slezak <lslezak@xxxxxxx>
- Date: Mon, 02 Apr 2012 17:09:07 +0200
- Message-id: <4F79C113.8060809@suse.cz>
Dne 1.4.2012 17:47, Saurabh Sood napsal(a):
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/repository.rb#L166
--
Ladislav Slezák
Appliance department / YaST Developer
Lihovarská 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak@xxxxxxxx
SUSE
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: zypp-devel+owner@xxxxxxxxxxxx
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/repository.rb#L166
--
Ladislav Slezák
Appliance department / YaST Developer
Lihovarská 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak@xxxxxxxx
SUSE
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: zypp-devel+owner@xxxxxxxxxxxx
| < Previous | Next > |