From 7ca53e93605990a3927e4e11f45056b555b9f6f3 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 27 Oct 2009 11:43:32 +0000 Subject: fix buglet: error out if pkg does not install in all cases. noticed by Markus Lude. --- usr.sbin/pkg_add/pkg_add | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin/pkg_add') diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index 646eaf71e0e..84f0c8ff812 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.365 2009/10/21 10:26:16 espie Exp $ +# $OpenBSD: pkg_add,v 1.366 2009/10/27 11:43:31 espie Exp $ # # Copyright (c) 2003-2009 Marc Espie # @@ -469,8 +469,7 @@ sub install_set return (); } if ($handle->has_error) { - if ($handle->has_error(OpenBSD::Handle::BAD_PACKAGE) && - !$handle->{tweaked}) { + if (!$handle->{tweaked}) { $state->set_name_from_handle($handle); $state->fatal("Fatal error"); } else { -- cgit v1.2.3