summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-01-07 13:11:22 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-01-07 13:11:22 +0000
commit881021dd47d314987fa9f16e4c744b6fd9309ff5 (patch)
tree4dbbe0be39651b9c4d94ce86c712bd60c9fe1b92
parent4ef05a3f36d65af848e0f261d22bfae1bcdb70de (diff)
make sure is_valid works for alternatives
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgSpec.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm b/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm
index 7182e4c823f..250ba48931b 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PkgSpec.pm,v 1.26 2010/01/05 12:20:47 espie Exp $
+# $OpenBSD: PkgSpec.pm,v 1.27 2010/01/07 13:11:21 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -315,7 +315,7 @@ sub match_locations
sub is_valid
{
- my $self = @_;
+ my $self = shift;
for my $subpattern (@$self) {
return 0 unless $subpattern->is_valid;
}