Mailinglist Archive: zypp-devel (116 mails)

< Previous Next >
Re: [zypp-devel] repo modification use cases
  • From: Duncan Mac-Vicar <dmacvicar@xxxxxxx>
  • Date: Wed, 20 Jun 2007 23:09:09 +0200
  • Message-id: <200706202309.09374.dmacvicar@xxxxxxx>
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 (??)

-- 
Duncan Mac-Vicar Prett  
Novell :: SUSE R&D, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References