[csw-maintainers] Packages that require either package A or package B'

Ben Walton bwalton at opencsw.org
Thu May 21 20:13:08 CEST 2009


Excerpts from Philip Brown's message of Thu May 21 14:02:57 -0400 2009:
> if you apt-get [somepackage], and that package
> "depends on mysql|postgres", and neither is installed...
> What happens?

I've never actually interacted with it through command-line apt, but
always through aptitude.  When I select a package that requires A|B,
it will mark that package as having unmet dependencies.  I can then
resolve the dependency by selecting one of the available options.
This satisfies the condition and away we go.  Same goes for the
general Provides/Requires.  Broken until the selected package set
meets the criteria.

I suspect that command-line apt would simply quit with an error
(likely listing the packages that would fulfill the requirements).  If
you ran apt-get again with firstpkg deppkg, it would run to
completion.

They also provide a 'suggests' feature that can interact with this
(although it can be used independently also to provide additional,
optional functionality).  A 'suggested' package may be the preferred
db backend, for example.

-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20090521/48b1b3e3/attachment-0001.asc>


More information about the maintainers mailing list