diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-10-27 11:43:32 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-10-27 11:43:32 +0000 |
commit | 7ca53e93605990a3927e4e11f45056b555b9f6f3 (patch) | |
tree | 1187bde29e4f6279bb8f9a88f426cbda76586f0d /usr.sbin/pkg_add | |
parent | 048bfb2904b0ee9eb60d34291604873e5f5de8e8 (diff) |
fix buglet: error out if pkg does not install in all cases.
noticed by Markus Lude.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 5 |
1 files changed, 2 insertions, 3 deletions
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 <espie@openbsd.org> # @@ -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 { |