common/hooks/post-install: support new binfmts hook style
This commit is contained in:
parent
0420101ca2
commit
f368375437
|
@ -119,10 +119,16 @@ _EOF
|
||||||
#
|
#
|
||||||
# Handle binfmts trigger
|
# Handle binfmts trigger
|
||||||
#
|
#
|
||||||
if [ -n "${binfmts}" ]; then
|
if [ -n "${binfmts}" ] || [ -d "${PKGDESTDIR}/usr/share/binfmts" ]; then
|
||||||
_add_trigger binfmts
|
_add_trigger binfmts
|
||||||
|
fi
|
||||||
|
if [ -n "${binfmts}" ]; then
|
||||||
echo "export binfmts=\"${binfmts}\"" >> $tmpf
|
echo "export binfmts=\"${binfmts}\"" >> $tmpf
|
||||||
fi
|
fi
|
||||||
|
if [ -d "${PKGDESTDIR}/usr/share/binfmts" ]; then
|
||||||
|
_import_binfmts="$(find "${PKGDESTDIR}/usr/share/binfmts" -type f -printf '%f\n')"
|
||||||
|
echo "export import_binfmts=\"${_import_binfmts}\"" >> $tmpf
|
||||||
|
fi
|
||||||
#
|
#
|
||||||
# Handle GNU Info files.
|
# Handle GNU Info files.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue