diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-14 10:43:46 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-14 10:43:46 +0000 |
commit | b625ec4ca173b166b6eed5bafd2aa02064886be0 (patch) | |
tree | 06f51a40aba465201844ead2ad76b98de19698bc /usr.sbin/pkg_add/OpenBSD/PackingElement.pm | |
parent | bf1d37a0c9f685d8aedfb22b03d9294dc255c482 (diff) |
name tweaks: match -> match_list, match_repo -> match
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index aae57ff8000..679d83857ea 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.106 2007/05/13 10:08:11 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.107 2007/05/14 10:43:45 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -740,8 +740,10 @@ sub add my ($class, $plist, $args) = @_; require OpenBSD::PkgSpec; + require OpenBSD::PackageRepository::Installed; - my @candidates = OpenBSD::PkgSpec->new($args)->match(installed_packages()); + my @candidates = OpenBSD::PackageRepository::Installed->new + ->match(OpenBSD::PkgSpec->new($args)); if (@candidates == 1) { if (!defined $installed_modules->{$candidates[0]}) { # pull in the module right here and now; |