summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-06-07 20:30:04 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-06-07 20:30:04 +0000
commit9ab06a41d634c49213551882be9681038fe8a839 (patch)
tree0f6e2062a95fb2058e1658396edbd8bd51eb6af1 /usr.sbin/pkg_add
parent062eae830dfc17889225d8113b0c2eec3696411f (diff)
give handle a temporary name, this prevents `undefined' messages.
Diffstat (limited to 'usr.sbin/pkg_add')
-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 1d238aaba55..a7831b901fb 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.312 2007/06/07 12:57:33 espie Exp $
+# $OpenBSD: pkg_add,v 1.313 2007/06/07 20:30:03 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -200,6 +200,7 @@ sub create_handle
{
my ($pkg, $state) = @_;
my $handle = OpenBSD::Handle->new;
+ $handle->{pkgname} = $pkg;
my $location = OpenBSD::PackageLocator->find($pkg, $state->{arch});
if (!$location) {
print $state->deptree_header($pkg);