Index: common/common.sh ================================================================== --- common/common.sh +++ common/common.sh @@ -71,20 +71,20 @@ : } function extract() { if [ -d "${buildsrcdir}" ]; then - mkdir "${workdir}" || return 1 + mkdir -p "${workdir}" || return 1 cp -rp "${buildsrcdir}"/* "${workdir}" || return 1 return 0 fi if [ -n "${pkgarchive}" ]; then ( - mkdir "${workdir}" || exit 1 + mkdir -p "${workdir}" || exit 1 cd "${workdir}" || exit 1 case "${pkgarchive}" in *.tar.gz|*.tgz)