From 3b291a8b1dfbc8a5c1c1adaaf0d463c31e8b3b48 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Mar 2014 11:43:16 +0100 Subject: [PATCH] xbps-src: resolve XBPS_DISTDIR correctly with relative paths. --- common/xbps-src/xbps-src.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/xbps-src.sh b/common/xbps-src/xbps-src.sh index 576a88e69e3..91059c62d77 100644 --- a/common/xbps-src/xbps-src.sh +++ b/common/xbps-src/xbps-src.sh @@ -338,7 +338,7 @@ if [ -n "$IN_CHROOT" ]; then readonly XBPS_CONFIG_FILE=/etc/xbps/xbps-src.conf readonly XBPS_DISTDIR=/xbps-packages else - _distdir="$(dirname $0)" + _distdir="$(readlink -f $(dirname $0))" if [ "${_distdir}" = "." ]; then readonly XBPS_DISTDIR="$(pwd -P)" else