diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-19 19:24:13 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-19 19:24:13 +0200 |
commit | 4e49c852c9b72cca3560001db703032469c6464a (patch) | |
tree | 400b301c450c29fc4f93d66e2cfaa9d9ffce860e /subr | |
parent | a7ecdcf5d0d55e8e695d5724c579f89ca2704f87 (diff) | |
download | midipix_build-4e49c852c9b72cca3560001db703032469c6464a.tar.bz2 midipix_build-4e49c852c9b72cca3560001db703032469c6464a.tar.xz |
subr/ex_pkg_exec.subr:exp_pkg_exec_pre(): always create any of ${PKG_{{BASE,BUILD}_DIR,DESTDIR{,_HOST}}} if non-existent.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/ex_pkg_exec.subr | 3 |
1 files changed, 3 insertions, 0 deletions
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}"; }; |