libexec/build.sh: force base-files installation to not fail on EEXIST.
This commit is contained in:
parent
9a2487e19e
commit
5d631d1415
|
@ -100,10 +100,7 @@ fi
|
||||||
if [ -z "$CHROOT_READY" -a "$PKGNAME" = "base-files" ]; then
|
if [ -z "$CHROOT_READY" -a "$PKGNAME" = "base-files" ]; then
|
||||||
msg_normal "Installing $PKGNAME into masterdir...\n"
|
msg_normal "Installing $PKGNAME into masterdir...\n"
|
||||||
_log=$(mktemp --tmpdir || exit 1)
|
_log=$(mktemp --tmpdir || exit 1)
|
||||||
if [ -n "$XBPS_BUILD_FORCEMODE" ]; then
|
XBPS_ARCH=$XBPS_MACHINE $XBPS_INSTALL_CMD -yf $PKGNAME >${_log} 2>&1
|
||||||
_flags="-f"
|
|
||||||
fi
|
|
||||||
XBPS_ARCH=$XBPS_MACHINE $XBPS_INSTALL_CMD ${_flags} -y $PKGNAME >${_log} 2>&1
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
msg_red "Failed to install $PKGNAME into masterdir, see below for errors:\n"
|
msg_red "Failed to install $PKGNAME into masterdir, see below for errors:\n"
|
||||||
cat ${_log}
|
cat ${_log}
|
||||||
|
|
Loading…
Reference in New Issue