Le Vendredi 01 Ao�t 2003 13:04, John van Spaandonk a �crit :
> On Friday 01 August 2003 10:43, Duncan wrote:
> > On Wed 30 Jul 2003 10:56, Olivier Thauvin posted as excerpted below:
> > > Le Mercredi 30 Juillet 2003 17:42, John van Spaandonk a �crit :
[...]

> While experimenting with urpmi I tried
>
> urpmi --auto-select --bug --media cooker

Correct syntax is:

urpmi --auto-select --bug <dir_where_to_put_files> --media cooker
<dir_where_to_put_files> may not exist.

Because I am tracking some bug, now I have this in .bashrc (or a variant in 
cron on my chroot):

[EMAIL PROTECTED] olivier]$ type urpmi
urpmi is aliased to `sudo /usr/sbin/urpmi  --media web --bug 
/tmp/urpmibug-`date +%Y%m%d-%H%M%S`'

My media are select from my hostname (find by dhcp) to take local mirror.

case "`hostname -d`" in
# [...]
        "int.heraudet.com")
                urpmisrc="|foo|bar"
                http_proxy=http://proxy:3128
                ftp_proxy=ftp://proxy:3128
        ;;
        *)
                urpmisrc="|web"
        ;;
esac

l=`echo $urpmisrc | sed 's:|: --media :g'`
alias urpmi="sudo /usr/sbin/urpmi ${l} --bug /tmp/urpmibug-\`date 
+%Y%m%d-%H%M%S\`"
alias urpme="sudo /usr/sbin/urpme"
alias urpmq="urpmq $l"
l=`echo $urpmisrc | sed 's:|: :g'`
alias urpmi.update="sudo /usr/sbin/urpmi.update $l"

Happy urpmi hacking.

>
> and I noticed that the --bug supresses my explicit media selection, so
> in my case packages from cooker, plf and contrib were installed...
>
> Is this intentional behavior of urpmi?
>
> Best
>
> John

-- 
Linux pour Mac !? Enfin le moyen de transformer
une pomme en v�ritable ordinateur. - JL.
Olivier Thauvin - http://nanardon.homelinux.org/


Reply via email to