Mailinglist Archive: yast-devel (105 mails)

< Previous Next >
[yast-devel] [Fwd: Re: [zypp-devel] repository 'path']
  • From: Jan Kupec <jkupec@xxxxxxx>
  • Date: Thu, 11 Sep 2008 13:52:58 +0200
  • Message-id: <48C9069A.9050202@xxxxxxx>
forwarding Michael's reply (i posted the original to wrong mailing list)

-------- Original Message --------
Subject: Re: [zypp-devel] repository 'path'
Date: Thu, 11 Sep 2008 12:51:44 +0200
From: Michael Andres <ma@xxxxxxx>
Organization: SUSE LINUX Products GmbH, D-90409 Nuernberg, Germany
To: Jan Kupec <jkupec@xxxxxxx>
CC: ZYpp-Devel <zypp-devel@xxxxxxxxxxxx>, yast@xxxxxxx
References: <48C8E7D3.3040800@xxxxxxx>

On Thu, Sep 11, Jan Kupec wrote:

Hi Hackers,

the support for *path* in repositories (the piece appended to baseurl) is still not perfect in libzypp. I am about to fix it, but first i've got a few questions.

- DO WE NEED THIS AT ALL? :O)

AFAICT, we needed this for multi-product media (like patch-CDs
probably). I'm not sure why, though, can't we just go about it with
two different URLs? If some 'conent' file references the other
repo with a relative path, it should be no problem for libzypp to
just use the baseurl+this_path, no need to treat them separately(?).


To handle a media set we need to to know 2 urls.


1) the media root

- This is the location of media.<n>/media. We need it to check e.g whether
the correct media is inserted.

There are also other files like the gpg-keys, releasenotes,.. kept in the
media root directory and not per repository.

- In case you copy a media set to your disk (to offer it via http,
nfs,...)

/somewhere/DVD1
/DVD2
...
/DVD<N>

this is the place where you have to change DVD1 to DVD2 when changing
from media 1 to 2.


2) the repositories root on the media

This is the path to acces the repository on the media. If the media has
just one repo at /, you don't need the path.



Libzypp could live without 'path'. We could simply guess the media root
when changing or verifying media. For CD/DVD it's obvious. And for disc
copies we could probe for a ending in digits, or for a media.<n>
directory.

But you also have to adapt YaST (and maybe other tools), which currently
expect the url pointing to the media root. They download e.g

repo.url()/control.xml

Or we have to change the media layout an keep certain files per repo and
not per media. This might even be reasonable, but...

It's not a zypp local change. If we want to go for this, we have to
convince some people. But it could be worth trying to do this.



Is the 'path' part of YUM's definition?

AFAIK not. It's not needed if you don't deal with media sets the way we
do it.

'path' is actually part of the media handling, not of the repo.


- our repository definition allows multiple baseurls to be defined, as
well as mirrors (these are ignored currently IIRC). What to do with
this:

[foorepo]
baseurl = http://url1.org/repos
baseurl = http://url2.org/whatever
path = foorepo/openSUSE/11.1

not to mention mirrors. Should we just use the path for all of the
baseurls?

We have to. We must assume all urls point to locations with the same
layout (not just same content).

And in most cases you dont need the path as it's /.

--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+


--
cheers,
jano
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages