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

Re: TCPQuota: postinst, postrm and Depends



Richard Braakman <dark@xs4all.nl> wrote:

> Turbo Fredriksson wrote:
> 
> > I could however depend on 'libdbd-mysql-perl | libdbd-msql-perl, msql | mysql'
> > or perhaps '(libdbd-mysql-perl, mysql) | (libdbd-msql-perl, msql)'... Can one
> > write it like that?
> 
> No, but one can always reduce a complex expression to the form used by dpkg:
> 
> libdbd-mysql-perl | libdbd-msql-perl, libdbd-mysql-perl | msql, mysql | libdbd-msql-perl, mysql | msql

What this seems to say is:

libdbd-mysql-perl OR libdbdb-msql-perl AND libdbd-mysql-perl OR msql AND mysql OR
libdbd-msql-perl AND mysql OR msql

Didn't understand a thing... :) Lets put the thing I want to do in pseudo code:

if (libdbd-mysql-perl AND mysql) OR (libdbd-msql-perl AND msql); then
	true
else
	false
endif

> It's not pretty, I'll admit :)

You bet... :) But does it do what I want it to do?

-- 
-----------------------------------------------------------------------
 Turbo     __ _     Debian GNU     Unix _IS_ user friendly - it's just 
 ^^^^^    / /(_)_ __  _   ___  __  selective about who its friends are 
         / / | | '_ \| | | \ \/ /          papadoc.nocrew.org          
  _ /// / /__| | | | | |_| |>  <  Turbo Fredriksson    turbo@tripnet.se
  \\\/  \____/_|_| |_|\__,_/_/\_\ Surrey/B.C./Canada      (604)572-3523
Debian Certified Linux Developer  PGP#788CD1A9   www5.tripnet.se/~turbo
------- PGP:  B7 92 93 0E 06 94 D6 22  98 1F 0B 5B FE 33 A1 0B --------
-- 
Qaddafi arrangements Albanian NSA strategic Khaddafi Honduras quiche
Waco, Texas Serbian $400 million in gold bullion Noriega spy Peking
SDI

Attachment: pgpezyIZ0wnUD.pgp
Description: PGP signature


Reply to: