summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-31 16:50:44 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-31 16:50:44 +0000
commit46e45171f6118af20321bef87b32166b0d3a744f (patch)
tree731fe5acf82e1ed229c4033c1961d56c0a0ba871 /usr.sbin/pkg_add
parentb60d46a3620098abdc70957024de5078903522fb (diff)
we cannot install a package without a solver, remove redundant test.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/pkg_add8
1 files changed, 3 insertions, 5 deletions
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 <espie@openbsd.org>
#
@@ -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);