diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-12 15:00:31 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-12 15:00:31 +0000 |
commit | 2491cf3ea853b2d89c8d2d9dcae5fdfb6c6e6f2b (patch) | |
tree | 6fc2e08c76cf06b7d6c6f501d83ee96ff9fab3cd /usr.sbin/pkg_add/OpenBSD/PkgSpec.pm | |
parent | fa36ac8543c61b8d8270017bb3319114487e227f (diff) |
kill old PkgSpec interface
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PkgSpec.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgSpec.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm b/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm index 82cfb3b71cb..a0377fe6554 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.6 2007/05/12 14:36:56 espie Exp $ +# $OpenBSD: PkgSpec.pm,v 1.7 2007/05/12 15:00:30 espie Exp $ # # Copyright (c) 2003-2005 Marc Espie <espie@openbsd.org> # @@ -215,7 +215,7 @@ sub match_ref my ($self, $r) = @_; my @l = (); - for my $subpattern (ref($self) ? @{$self->{patterns}} : split /\|/, $self) { + for my $subpattern (@{$self->{patterns}}) { push(@l, subpattern_match($subpattern, $r)); } return @l; @@ -224,7 +224,7 @@ sub match_ref sub match { my ($self, @list) = @_; - return match_ref($self, \@list); + return $self->match_ref(\@list); } sub new |