Le Dimanche 02 Avril 2006 22:30, Guillaume Rousse a écrit :
> We just changed the repository structure to provide arch-specific
> medias. This will allow lighter hdlists, and less side effect for x86_64
> hosts.
>
> However, it also means the syntax to add plf media changed, from
> urpmi.addmedia free <mirror-url>/free/<version> to urpmi.addmedia free
> <mirror-url>/free/<version>/<arch>. Manually editing your urpmi
> configuration file should be enough for existing medias.
> _______________________________________________
> PLF-discuss mailing list
> [email protected]
> https://www.zarb.org/mailman/listinfo/plf-discuss

Could we add the proper file for urpmi.config ?
I just did a test on my x86_64 repository :



$ cat /tmp/pub/Distributions_Linux/plf/mandrake/free/cooker/reconfig.urpmi
# this is an urpmi reconfiguration file
/cooker /cooker/$ARCH

$ head  /etc/urpmi/urpmi.cfg
{
  default-media: x86_64
}

test_reconf file:////tmp/pub/Distributions_Linux/plf/mandrake/free/cooker {
  hdlist: hdlist.test_reconf.cz
  with_hdlist: hdlist.cz
}

cooker_plf-free 
ftp://ftp.free.fr/pub/Distributions_Linux/plf/mandrake/free/cooker {

$ ls /tmp/pub/Distributions_Linux/plf/mandrake/free/cooker/
bittorrent-gui-4.3.3-2mdk.noarch.rpm  
hdlist.cz  
i586/  
reconfig.urpmi  
synthesis.hdlist.cz  
x86_64/

$ sudo perl  /usr/sbin/urpmi.update -vv test_reconf
reconfiguration de urpmi pour le média « test_reconf »...
reconfiguration effectuée
le fichier de configuration [/etc/urpmi/urpmi.cfg] a été écrit
Impossible d'accéder au média « test_reconf »,
cela peut arriver si vous avez effectué un montage manuel lors de la création 
du média.
examen de la liste de synthèse 
[/var/lib/urpmi/synthesis.hdlist.main_x86_64.cz]
examen de la liste de synthèse 
[/var/lib/urpmi/synthesis.hdlist.contrib_x86_64.cz]
examen de la liste de synthèse 
[/var/lib/urpmi/synthesis.hdlist.main_x86_64_debug.cz]

$ head  /etc/urpmi/urpmi.cfg
{
  default-media: x86_64
}

test_reconf 
file:////tmp/pub/Distributions_Linux/plf/mandrake/free/cooker/$ARCH {
  hdlist: hdlist.test_reconf.cz
  with_hdlist: hdlist.cz
}


I used the not-yet-documented urpmi.reconfig feature, and the keyword 
expansion introduced for 10.2 
( http://archives.mandrivalinux.com/cooker/2005-02/msg02853.php ).

Can someone add the file and test that everything work fine ?

If you test, beware, this do not work for file:// media,  as urpmi check 
before adding the media and doing the keyword expansion, so I had to comment 
some code in order to test ( and also use the debugger to fully understand 
why my regexp was not working du to a spurious / at the end of the url ).

And the comment at the beggining of the file is needed, so do not remove it.


-- 
Michael Scherer
_______________________________________________
PLF-discuss mailing list
[email protected]
https://www.zarb.org/mailman/listinfo/plf-discuss

Reply via email to