diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-01-24 15:13:16 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-01-24 15:13:16 +0000 |
commit | ee39a674b487e765657673d5ef4bab899a58e8a9 (patch) | |
tree | d2bf1fbeceee50c2bd343b10f1bd612734074c7e /usr.sbin/pkg_add/OpenBSD/Dependencies.pm | |
parent | 8c8066bac5665f15cb86cfa1ce2be6e7fb6d88c6 (diff) |
use libspecs, report problem will be terser for now.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Dependencies.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Dependencies.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm index 8d7d6bf65a9..f4068c26e5f 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.121 2010/01/24 15:00:26 espie Exp $ +# $OpenBSD: Dependencies.pm,v 1.122 2010/01/24 15:13:15 espie Exp $ # # Copyright (c) 2005-2010 Marc Espie <espie@openbsd.org> # @@ -652,10 +652,10 @@ use OpenBSD::SharedLibs; sub check_lib_spec { my ($self, $base, $spec, $dependencies) = @_; - my @r = OpenBSD::SharedLibs::lookup_libspec($base, $spec); - for my $candidate (@r) { - if ($dependencies->{$candidate}) { - return $candidate; + my $r = OpenBSD::SharedLibs::lookup_libspec($base, $spec); + for my $candidate (@$r) { + if ($dependencies->{$candidate->origin}) { + return $candidate->origin; } } return; |