summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-14 10:53:32 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-14 10:53:32 +0000
commit1f94b8d9a850dbb366ebbd30c37f8e1446017987 (patch)
tree35cce9bc8f1299f6ff45bf2a374669c415c8071a /usr.sbin/pkg_add/pkg
parentb625ec4ca173b166b6eed5bafd2aa02064886be0 (diff)
put search objects into a search class.
Diffstat (limited to 'usr.sbin/pkg_add/pkg')
-rw-r--r--usr.sbin/pkg_add/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg b/usr.sbin/pkg_add/pkg
index e65b3f8fd9f..be672d124ae 100644
--- a/usr.sbin/pkg_add/pkg
+++ b/usr.sbin/pkg_add/pkg
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg,v 1.6 2007/05/14 10:43:45 espie Exp $
+# $OpenBSD: pkg,v 1.7 2007/05/14 10:53:31 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -26,7 +26,7 @@ sub check_dependencies($)
require OpenBSD::PackageRepository::Installed;
my $dependency = shift;
my @m = OpenBSD::PackageRepository::Installed->new
- ->match(OpenBSD::PkgSpec->new($dependency));
+ ->match(OpenBSD::Search::PkgSpec->new($dependency));
return (@m != 0) ? 1 : 0;
}