diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-20 12:32:02 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-20 12:32:02 +0000 |
commit | f233579ae84525c6f849aff09b554e34c6c88048 (patch) | |
tree | c7ab85a0e52e1fd02c33cb134824439f5343b30b /usr.sbin | |
parent | 3e3869cfef1a8e75c93b0337c3e50d80fb063881 (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_add | 3 |
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; |