summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-14 10:43:46 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-14 10:43:46 +0000
commitb625ec4ca173b166b6eed5bafd2aa02064886be0 (patch)
tree06f51a40aba465201844ead2ad76b98de19698bc /usr.sbin/pkg_add/pkg
parentbf1d37a0c9f685d8aedfb22b03d9294dc255c482 (diff)
name tweaks: match -> match_list, match_repo -> match
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 843aa9143e0..e65b3f8fd9f 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.5 2007/05/14 10:27:46 espie Exp $
+# $OpenBSD: pkg,v 1.6 2007/05/14 10:43:45 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -25,8 +25,8 @@ sub check_dependencies($)
require OpenBSD::PkgSpec;
require OpenBSD::PackageRepository::Installed;
my $dependency = shift;
- my @m = OpenBSD::PkgSpec->new($dependency)
- ->match_repo(OpenBSD::PackageRepository::Installed->new);
+ my @m = OpenBSD::PackageRepository::Installed->new
+ ->match(OpenBSD::PkgSpec->new($dependency));
return (@m != 0) ? 1 : 0;
}