[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New package dependency field format



On Thu, Sep 04, 2003 at 06:43:55PM +0200, Josip Rodin wrote:
> On Wed, Sep 03, 2003 at 05:13:25PM +0100, Andrew Suffield wrote:
> > > > ! is probably needed.
> > > 
> > > What for, exactly? I can think of
> > > 
> > > Depends: foo (!= 1.34-2)
> > > 
> > > but that sounds more like eye candy than really necessary...
> > 
> > Depends: foo | ! bar
> > 
> > That can be read as "If bar is installed, then foo must also be
> > installed".
> 
> That still sounds redundant, and can be currently expressed with
> 
> Depends: foo, foo | bar

No, that requires either foo or bar be installed.

Here's the truth table. T indicates the combination is acceptable, F
indicates it is not.

              foo, foo | bar       foo | ! bar
foo only            T                   T
bar only            F                   F
foo and bar         T                   T
neither             F                   T

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

Attachment: pgpzZiTQMF3D0.pgp
Description: PGP signature


Reply to: