From 46e45171f6118af20321bef87b32166b0d3a744f Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Thu, 31 May 2007 16:50:44 +0000 Subject: we cannot install a package without a solver, remove redundant test. --- usr.sbin/pkg_add/pkg_add | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.sbin/pkg_add') diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index d5c41638012..4fd61cf6b4a 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.298 2007/05/31 16:48:18 espie Exp $ +# $OpenBSD: pkg_add,v 1.299 2007/05/31 16:50:43 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -441,11 +441,9 @@ sub really_add OpenBSD::SharedLibs::add_libs_from_plist($plist); $plist->to_cache; OpenBSD::Add::register_installation($plist); - delete $handle->{partial}; - if (defined $handle->{solver}) { - $handle->{solver}->register_dependencies; - } + $handle->{solver}->register_dependencies; add_installed($pkgname); + delete $handle->{partial}; OpenBSD::PkgCfl::register($plist, $state); if ($plist->has(DISPLAY)) { $plist->get(DISPLAY)->prepare($state); -- cgit v1.2.3