summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/pkg')
-rw-r--r--usr.sbin/pkg_add/pkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg b/usr.sbin/pkg_add/pkg
index c6ba86c6816..e0a630b178b 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.2 2004/08/06 07:51:17 espie Exp $
+# $OpenBSD: pkg,v 1.3 2004/10/11 09:44:06 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -23,11 +23,11 @@ use Getopt::Std;
sub check_dependencies($)
{
eval {
- require OpenBSD::PackageName;
+ require OpenBSD::PkgSpec;
require OpenBSD::PackageInfo;
};
my $dependency = shift;
- my @m = OpenBSD::PackageName::pkgspec_match($dependency,
+ my @m = OpenBSD::PkgSpec::match($dependency,
OpenBSD::PackageInfo::installed_packages());
return (@m != 0) ? 1 : 0;
}