From 2810b865cb4df2d784170d3b972b9c1ee6c80e1c Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 18 Nov 2017 14:15:55 +0100 Subject: [PATCH] common/xbps-src: use ch_wrksrc in doinstall. --- common/xbps-src/libexec/xbps-src-doinstall.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/xbps-src/libexec/xbps-src-doinstall.sh b/common/xbps-src/libexec/xbps-src-doinstall.sh index b0c934f13a7..b3d5d7276f8 100755 --- a/common/xbps-src/libexec/xbps-src-doinstall.sh +++ b/common/xbps-src/libexec/xbps-src-doinstall.sh @@ -28,10 +28,7 @@ done XBPS_INSTALL_DONE="${XBPS_STATEDIR}/${sourcepkg}_${XBPS_CROSS_BUILD}_install_done" -cd "$wrksrc" || msg_error "$pkgver: cannot access to wrksrc [$wrksrc]\n" -if [ -n "$build_wrksrc" ]; then - cd $build_wrksrc || msg_error "$pkgver: cannot access to build_wrksrc [$build_wrksrc]\n" -fi +ch_wrksrc if [ "$SUBPKG_MODE" = "no" ]; then if [ ! -f $XBPS_INSTALL_DONE ] || [ -f $XBPS_INSTALL_DONE -a -n "$XBPS_BUILD_FORCEMODE" ]; then