On Friday, 29 בDecember 2006 12:12, Lior Kaplan wrote:
> I'm now creating another package (named C) which should depend on the
> existence of the user created by A or B.
> ...
> Requires: A | B
> ...
> So I tried "Requires: A / B", which pass rpmbuild, but I don't think it

Regretfully, RPM dependencies do not support logical OR.
(nor any "Suggests" lookalike).

> Any advices on how it's done properly?

The only solution I'm aware of is to encode the dependencies
without a logical OR. This is always possible, but not always
convenient.

For your case the solution is pretty trivial and maybe is even nicer
than your original dependency flow:
        Package D -- creates the user.
        Package A -- requires D.
        Package B -- ditto.
        Package C -- ditto.

In other cases it may be cumbersome though.

-- 
Oron Peled                             Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]                  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

Free software: each person contributes a brick, but ultimately each
person receives a house in return.
           -- Brendan Scott

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to