On Mon, Jun 11, 2007 at 04:31:40PM +0200, Duncan Mac-Vicar Prett wrote:
Reference: http://lists.opensuse.org/zypp-devel/2007-06/msg00006.html
In order to implement url variables, and mirror list, which I don't consideer features but semantics we have to implement to "follow" the repoinfo standard, I would like to propose a way to implement url variables and a simple way to extend them.
- mirrorlist: easy, we just need to download the list in repomanager and read the urls when refreshing the source or downloading packages.
Sounds good to me. FYI, yum does automatic failover on: -- repomd checksums dont match (ex. not-fully-synced repo) -- download failure for individual RPMs That I know of.
- url variables: easy, we do substitution inside repomanager before downloading data.
- url variables "plugins": -> provide the basc ones built-in (arch, releasever, etc) -> in zypp.conf [url-variables] foo=/somescript.sh
1) I would not want to modify a global config file to add my plugin. It is ugly to do from within an RPM install script. Would rather just drop files. (proposal below) 2) Need an API definition for how the script will tell zypp which variables it wants to define. (no ideas here)
or by convention (just drop a script in /etc/zypp/urlvars/foo )
1) Scripts in /etc/ are not good. 2) Would need a way to disable them... How about: plugins wherever (/usr/lib/zypp-plugins/) config files per-plugin in /etc/zypp.plugins.d/. Each plugin has a: [main] enable={0|1} this is parsed by yum, not the plugin. Then the plugin can use the rest of the file for its needs. -- Michael -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org