Re: grouping of alternative depends
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rafael Laboissiere wrote:
> * Emilio Pozuelo Monfort <pochu@ubuntu.com> [2009-03-29 12:52]:
>
>> Holger Levsen wrote:
>>
>>> I'd like to use a depends like "(pdns-backend-ldap pdns-recursor) | bind9" but
>>> afaik this is not possible. AFAICS I should file a wishbug against dpkg but
>>> as I dont have time atm to dig through all the bugs against dpkg, I thought I
>>> drop a mail here, in the hope that someone will point me to an already
>>> existing bug or if not, just submit this. TIA.
>> Doesn't this do what you want?
>>
>> Depends: pdns-backend-ldap | bind9, pdns-recursor | bind9
>
> Yes, the formulae are logically equivalent to each other. However, for
> some packages I would like to have (A B) | (C D), meaning ((A and B) or
> (C and D)). This does not seem to be doable with the current Depends
> syntax.
>
I know it's ugly, but this probably should do the job (note - completely
untested; there may be a better way):
Depends: A | C, A | D, B | C, B | D
- --
ABCD
(been lurking for a while, but haven't had anything to post until now...)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknPXp8ACgkQOypDUo0oQOo/WQCfaRCVGyDtmlViYRLo5AggffSx
+JoAmwc8oiVjRv9Rcisnqlb6vRAWUxQe
=yIFU
-----END PGP SIGNATURE-----
Reply to: