diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-10 10:58:33 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-10 10:58:33 +0000 |
commit | ee298198f1e32c722f1d32805e4d765bd81cad0a (patch) | |
tree | a491dd879cbc701be6ba2a0c0cdc76b9754994b5 /usr.sbin | |
parent | aa7270d6f675d64c79f776bf47c480f38dad8bb0 (diff) |
zap match
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Dependencies.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm index 735eb957e86..59e0e6b5bf7 100644 --- a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm +++ b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Dependencies.pm,v 1.79 2009/11/08 11:18:41 espie Exp $ +# $OpenBSD: Dependencies.pm,v 1.80 2009/11/10 10:58:32 espie Exp $ # # Copyright (c) 2005-2007 Marc Espie <espie@openbsd.org> # @@ -445,7 +445,9 @@ sub find_old_lib require OpenBSD::Search; require OpenBSD::PackageRepository::Installed; - for my $try (OpenBSD::PackageRepository::Installed->new->match(OpenBSD::Search::PkgSpec->new(".libs-".$pattern))) { + + my $r = OpenBSD::PackageRepository::Installed->new->match_locations(OpenBSD::Search::PkgSpec->new(".libs-".$pattern)); + for my $try (map {$_->name} @$r) { OpenBSD::SharedLibs::add_libs_from_installed_package($try); if ($self->check_lib_spec($base, $lib, {$try => 1})) { return $try; |