From 9067c2e4f78416fe436e653ee18bb225137e7668 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 17 Jul 2014 15:54:37 +0200 Subject: [PATCH] xbps-src: xbps-src-doextract: change cwd to wrksrc for post_extract(). --- common/xbps-src/libexec/xbps-src-doextract.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/xbps-src/libexec/xbps-src-doextract.sh b/common/xbps-src/libexec/xbps-src-doextract.sh index b374946fcba..1b891d3460d 100755 --- a/common/xbps-src/libexec/xbps-src-doextract.sh +++ b/common/xbps-src/libexec/xbps-src-doextract.sh @@ -63,6 +63,8 @@ fi touch -f $XBPS_EXTRACT_DONE +[ -d $wrksrc ] && cd $wrksrc + # If template defines post_extract(), use it. if declare -f post_extract >/dev/null; then run_func post_extract