hooks/generate-runtime-deps: fix c093b9f
and use the correct shlib.
This commit is contained in:
parent
6a0312f258
commit
f20f841c21
1 changed files with 7 additions and 5 deletions
|
@ -100,16 +100,18 @@ hook() {
|
||||||
for j in ${rdep}; do
|
for j in ${rdep}; do
|
||||||
_pkgname=$($XBPS_UHELPER_CMD getpkgname "$j")
|
_pkgname=$($XBPS_UHELPER_CMD getpkgname "$j")
|
||||||
# if there's a SONAME matching pkgname, use it.
|
# if there's a SONAME matching pkgname, use it.
|
||||||
for f in ${pkgname} ${subpackages}; do
|
for x in ${pkgname} ${subpackages}; do
|
||||||
if [ "${_pkgname}" = "${f}" ]; then
|
if [ "${_pkgname}" = "${x}" ]; then
|
||||||
found=1
|
found=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
|
||||||
if [ -n "$found" ]; then
|
if [ -n "$found" ]; then
|
||||||
_rdep=$j
|
_rdep=$j
|
||||||
else
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -z "${_rdep}" ]; then
|
||||||
# otherwise pick up the first one.
|
# otherwise pick up the first one.
|
||||||
for j in ${rdep}; do
|
for j in ${rdep}; do
|
||||||
[ -z "${_rdep}" ] && _rdep=$j
|
[ -z "${_rdep}" ] && _rdep=$j
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue