From a24c690462f18f0850cffb45023f09a967f73449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Wed, 13 Jan 2021 14:49:36 +0000 Subject: dist/dist_minipix.dist: fail non-silently given non-existent shared object in ${PREFIX_NATIVE}/lib. --- dist/dist_minipix.dist | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dist') diff --git a/dist/dist_minipix.dist b/dist/dist_minipix.dist index 85775114..17d96271 100644 --- a/dist/dist_minipix.dist +++ b/dist/dist_minipix.dist @@ -34,8 +34,10 @@ pkg_dist_minipix_all() { libssl.so.48 libtasn1.so.6 libtinfo.so.6 libtinfo.so \ libtinfow.so.6 libu16ports.so.0 libunistring.so.2 libuuid.so.1 \ libz.so.1; do - if [ -e "${PREFIX_NATIVE}/lib/${_fname}" ]\ - && rtl_is_newer "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}"\ + if [ ! -e "${PREFIX_NATIVE}/lib/${_fname}" ]; then + rtl_log_msg fatal "Error: shared object \`%s' non-existent on copy." "${PREFIX_NATIVE}/lib/${_fname}"; + return 1; + elif rtl_is_newer "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}"\ && ! rtl_fileop cp_follow "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin"; then return 1; fi; -- cgit v1.2.3