[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Behaviour of 'pkg prefix'
From: |
David Bateman |
Subject: |
Re: Behaviour of 'pkg prefix' |
Date: |
Sat, 15 Dec 2007 22:50:51 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
Søren Hauberg wrote:
> Hi,
> Currently if I run
> pkg("prefix", "/some/dir")
> my installation prefix is changed but the architecture dependent prefix
> remains unchanged. I find this counter-intuitive. I would think that the
> above code would set both the architecture dependent and independent
> prefixes. I would find the following API more intuitive:
> pkg("prefix", "/independent/dir") : sets both 'prefix' and
> 'archprefix' to "/independent/dir".
> pkg("prefix", "/independent/dir", "/dependent/dir") : sets
> 'prefix' to "/independent/dir", and 'archprefix' to "/dependent/dir".
> pkg("prefix", "/independent/dir", "") : sets 'prefix' to
> "/independent/dir", and leaves 'archprefix' unchanged.
> pkg("prefix", "", "/dependent/dir") : leaves 'prefix' unchanged,
> and sets 'archprefix' to "/dependent/dir".
>
> Any thoughts?
> Søren
>
>
Sure, why not... What to patch it :-)
D.