mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
- Detect failure to create PREFIX for pkg_install workaround added in r351422
With hat: portmgr
This commit is contained in:
parent
d449f1102f
commit
b8856298ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351424
@ -3824,8 +3824,12 @@ do-package: ${TMPPLIST}
|
||||
fi; \
|
||||
${MKDIR} ${WRKDIR}/pkg; \
|
||||
if ! [ -d "${PREFIX}" ]; then \
|
||||
if ! ${MKDIR} ${PREFIX}; then \
|
||||
${ECHO_MSG} "=> Unable to create PREFIX. PREFIX must exist to create a package with pkg_install." >&2; \
|
||||
${ECHO_MSG} "=> Manually create ${PREFIX} first." >&2; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
made_prefix=1; \
|
||||
${MKDIR} ${PREFIX}; \
|
||||
fi; \
|
||||
if ${PKG_CMD} -S ${STAGEDIR} ${PKG_ARGS} ${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX}; then \
|
||||
[ -n "$${made_prefix}" ] && ${RMDIR} ${PREFIX}; \
|
||||
|
Loading…
Reference in New Issue
Block a user