xbps-src: fix unzip extraction.

This commit is contained in:
Juan RP 2011-10-25 20:53:31 +02:00
parent 1696d2de0b
commit b3347a901c
1 changed files with 1 additions and 2 deletions

View File

@ -137,8 +137,7 @@ extract_distfiles()
;;
zip)
if command -v unzip 2>&1 >/dev/null; then
unzip -q -x $XBPS_SRCDISTDIR/$curfile \
-d $extractdir
unzip -q $XBPS_SRCDISTDIR/$curfile -d $extractdir
if [ $? -ne 0 ]; then
msg_error "extracting $curfile into $XBPS_BUILDDIR.\n"
fi