diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-14 10:53:32 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-14 10:53:32 +0000 |
commit | 1f94b8d9a850dbb366ebbd30c37f8e1446017987 (patch) | |
tree | 35cce9bc8f1299f6ff45bf2a374669c415c8071a /usr.sbin/pkg_add/OpenBSD/PackingElement.pm | |
parent | b625ec4ca173b166b6eed5bafd2aa02064886be0 (diff) |
put search objects into a search class.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 679d83857ea..47871a7580d 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.107 2007/05/14 10:43:45 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.108 2007/05/14 10:53:31 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -691,7 +691,7 @@ sub spec my $self = shift; if (!defined $self->{spec}) { require OpenBSD::PkgSpec; - $self->{spec} = OpenBSD::PkgSpec->new($self->{pattern}); + $self->{spec} = OpenBSD::Search::PkgSpec->new($self->{pattern}); } return $self->{spec}; } @@ -743,7 +743,7 @@ sub add require OpenBSD::PackageRepository::Installed; my @candidates = OpenBSD::PackageRepository::Installed->new - ->match(OpenBSD::PkgSpec->new($args)); + ->match(OpenBSD::Search::PkgSpec->new($args)); if (@candidates == 1) { if (!defined $installed_modules->{$candidates[0]}) { # pull in the module right here and now; |