summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Ahlers <bernd@cvs.openbsd.org>2006-03-07 15:00:16 +0000
committerBernd Ahlers <bernd@cvs.openbsd.org>2006-03-07 15:00:16 +0000
commit5daf1250a51ef8906d16b94b4e5c546eb057e488 (patch)
tree2f7796174de599f6382413790a9f931c25802681
parent5a41e7b0e6300aa871b54231c60ea0a5e1ed55fa (diff)
Fix pkg_copy().
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepository.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
index b0f6810056c..5dd3f6967be 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageRepository.pm,v 1.7 2006/03/07 14:18:51 espie Exp $
+# $OpenBSD: PackageRepository.pm,v 1.8 2006/03/07 15:00:15 bernd Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -362,7 +362,7 @@ sub pkg_copy
my ($copy, $filename) = File::Temp::tempfile($template,
DIR => $dir) or die "Can't write copy to cache";
chmod 0644, $filename;
- $object->{tempname] = $filename;
+ $object->{tempname} = $filename;
my $handler = sub {
my ($sig) = @_;
unlink $filename;