summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index c9c5e0604a1..d2bd11d5edb 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.165 2009/12/20 22:38:45 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.166 2009/12/30 09:37:55 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -1597,11 +1597,12 @@ sub stringize($)
return join(',', @{$self->{arches}});
}
+my ($machine_arch, $arch);
+
sub check
{
my ($self, $forced_arch) = @_;
- my ($machine_arch, $arch);
for my $ok (@{$self->{arches}}) {
return 1 if $ok eq '*';
if (defined $forced_arch) {