From 4e49c852c9b72cca3560001db703032469c6464a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Thu, 19 Aug 2021 19:24:13 +0200 Subject: subr/ex_pkg_exec.subr:exp_pkg_exec_pre(): always create any of ${PKG_{{BASE,BUILD}_DIR,DESTDIR{,_HOST}}} if non-existent. --- subr/ex_pkg_exec.subr | 3 +++ 1 file changed, 3 insertions(+) (limited to 'subr') diff --git a/subr/ex_pkg_exec.subr b/subr/ex_pkg_exec.subr index f20c5c38..ae825ad2 100644 --- a/subr/ex_pkg_exec.subr +++ b/subr/ex_pkg_exec.subr @@ -43,6 +43,9 @@ exp_pkg_exec_pre() { || ! ex_pkg_state_set "${_pkg_name}" "start"; then return 1; fi; + elif ! rtl_exists_any "${PKG_BASE_DIR}" "${PKG_BUILD_DIR}" "${PKG_DESTDIR}" "${PKG_DESTDIR_HOST}"\ + && ! rtl_fileop mkdir "${PKG_BASE_DIR}" "${PKG_BUILD_DIR}" "${PKG_DESTDIR}" "${PKG_DESTDIR_HOST}"; then + return 1 fi; rtl_fileop cd "${PKG_BUILD_DIR}"; }; -- cgit v1.2.3