xbps-src: check that doesn't exist before mkdir.

This commit is contained in:
Juan RP 2011-07-02 18:05:20 +02:00
parent 1e7f7b5f00
commit f5f89bc6ff

View file

@ -54,7 +54,7 @@ extract_distfiles()
# If noextract is set, do a "fake extraction".
#
if [ -z "$distfiles" -o -n "$noextract" ]; then
mkdir $wrksrc
[ ! -d "$wrksrc" ] && mkdir -p $wrksrc
run_func do_extract
touch -f $XBPS_EXTRACT_DONE
return 0