summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-12-20 12:32:02 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-12-20 12:32:02 +0000
commitf233579ae84525c6f849aff09b554e34c6c88048 (patch)
treec7ab85a0e52e1fd02c33cb134824439f5343b30b /usr.sbin
parent3e3869cfef1a8e75c93b0337c3e50d80fb063881 (diff)
repair error message: set_pkgname so that we don't report for the last
package.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/pkg_add3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index ed2d6b291be..f186589c79a 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.153 2004/12/20 12:16:09 espie Exp $
+# $OpenBSD: pkg_add,v 1.154 2004/12/20 12:32:01 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -558,6 +558,7 @@ sub install_package
my $handle = $cache->{$pkg};
if ($errors > 0) {
+ $state->set_pkgname($pkg);
$state->fatal("Fatal error") unless defined $handle;
} else {
return () unless defined $handle;