Mailinglist Archive: zypp-devel (116 mails)

< Previous Next >
[zypp-devel] repomd (yum) mirrorlist and variable replacement support in zypp?
  • From: Michael E Brown <Michael_E_Brown@xxxxxxxx>
  • Date: Tue, 5 Jun 2007 10:45:53 -0500
  • Message-id: <20070605154552.GA19422@xxxxxxxxxxxxxxxxxxx>
    I am having trouble implementing a couple things in zypp.

  -- ability to use a yum mirrorlist URL
  -- ability to substitute variables in the URL

    Background, I maintain the unofficial Dell Linux repository, which
is in repomd format. I have RHEL and SLES packages posted there. For the
repos, I need to have it set up to use my mirrors.pl script. I have
googled around and searched the mailing list but could not find out how
to implement this. Basically, I need to emulate the yum "mirrorlist=URL"
functionality.

    My mirrorlist is at:
    http://linux.dell.com/repo/software/mirrors.pl?osname=sles10

    My next problem is that yum allows you to embed variables in the
URLs that will be replaced. For example "$releasever" is replaced with
the OS release version, "$basearch" would be replaced with "i386" or
"x86_64" depending on your arch. For Fedora 7, it would resolve to "7".
You can write a plugin to yum to extend it with additional variables. 

I have written a yum plugin to create variables representing the system
manufacturer and system model. This enables my Linux hardware repository
at http://linux.dell.com/repo/hardware/. This repository contains OS- and
Hardware-specific driver and update RPMs.

For example, the yum config for this repo is:

mirrorlist=http://linux.dell.com/repo/hardware/mirrors.pl?sys_ven_id=$sys_ven_id&sys_dev_id=$sys_dev_id&osname=fc$releasever.$basearch&dellsysidpluginver=$dellsysidpluginver

    I would like to know if there is an equivalent way to add this
functionality to zypp. (Note this builds on the mirrorlist
functionality above, as the mirrorlist cgi script responds with the list
of hardware-dependent repositories.

--
Michael
-- 
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages