Mailinglist Archive: zypp-devel (116 mails)
| < Previous | Next > |
Re: [zypp-devel] repo modification use cases
- From: Jan Kupec <jkupec@xxxxxxx>
- Date: Thu, 21 Jun 2007 08:25:18 +0200
- Message-id: <467A19CE.2020306@xxxxxxx>
Duncan Mac-Vicar wrote:
> On Wednesday 20 June 2007 13:27, Jan Kupec wrote:
>> RepoManager manager;
>> RepoInfo repo = manager.getRepoInfo(alias);
>> repo.setAlias(new_alias);
>> repo.setEnabled(false);
>> repo.removeMirror(url); // whatever
>> manager.modifyRepository(alias, repo);
>
> I like this one. However, no need to pass the alias, as it should be in the
> repoinfo itself (??)
not for the case where you want to rename it :O)
j.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
> On Wednesday 20 June 2007 13:27, Jan Kupec wrote:
>> RepoManager manager;
>> RepoInfo repo = manager.getRepoInfo(alias);
>> repo.setAlias(new_alias);
>> repo.setEnabled(false);
>> repo.removeMirror(url); // whatever
>> manager.modifyRepository(alias, repo);
>
> I like this one. However, no need to pass the alias, as it should be in the
> repoinfo itself (??)
not for the case where you want to rename it :O)
j.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |