OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Marc Espie (espiecvs.openbsd.org)
Date: Thu Nov 06 2003 - 12:12:07 CST


CVSROOT: /cvs
Module name: src
Changes by: espiecvs.openbsd.org 2003/11/06 11:12:07

Modified files:
        usr.sbin/pkg_add: pkg_add

Log message:
Split off dependency solving into its own function.
pkg without dependencies is not a special case, it will simply
end up with an empty solved dependency list.

Try harder to resolve dependencies without resorting to default, use
other arguments on the command line first.

This makes it possible to have pkg_add * run for the CD even if the CD
doesn't contain only default packages as long as the packages satisfy the
dependencies.