diff options
Diffstat (limited to 'usr.sbin/pkg_add/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index eb7d07f039f..65f3b54ba5b 100644 --- a/usr.sbin/pkg_add/pkg_add +++ b/usr.sbin/pkg_add/pkg_add @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_add,v 1.247 2007/05/14 18:19:25 espie Exp $ +# $OpenBSD: pkg_add,v 1.248 2007/05/17 13:36:21 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -530,8 +530,9 @@ sub install_package } } if (!defined $handle->{solved_dependencies}) { - my $solver = OpenBSD::Dependencies::Solver->new; - my @deps = $solver->solve($state, $handle, @todo); + my $solver = OpenBSD::Dependencies::Solver->new($handle->{plist}); + my @deps = $solver->solve($state, @todo); + $handle->{solved_dependencies} = $solver->{to_register}; if ($state->{verbose}) { $solver->dump; } |