summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-12-30 09:37:56 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-12-30 09:37:56 +0000
commit0c77d72cf994937079ad54e3d591cb4d4ec51666 (patch)
treee167fa33fcb21be9320b7ca83414060bdaabb81b /usr.sbin/pkg_add
parent367dc61c9e916d49f8b1fc1795d7b01b41a99ede (diff)
actually cache architecture, as intended
Diffstat (limited to 'usr.sbin/pkg_add')
-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) {