xbps-src: don't exec do_fetch() multiple times on success.
This commit is contained in:
parent
bc1c29747b
commit
0ffa09c1b4
1 changed files with 5 additions and 1 deletions
|
@ -70,7 +70,11 @@ fetch_distfiles()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$nofetch" ]; then
|
if [ -n "$nofetch" ]; then
|
||||||
cd ${XBPS_BUILDDIR} && run_func do_fetch && return $?
|
cd ${XBPS_BUILDDIR}
|
||||||
|
[ -n "$build_wrksrc" ] && mkdir -p "$wrksrc"
|
||||||
|
run_func do_fetch
|
||||||
|
touch -f $XBPS_FETCH_DONE
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $XBPS_SRCDISTDIR || return 1
|
cd $XBPS_SRCDISTDIR || return 1
|
||||||
|
|
Loading…
Reference in a new issue