From 4ef5bc5568d52e4ee151b1e0f7e10e840c9bc588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Thu, 10 May 2012 14:58:23 -0300 Subject: Create repo dir if it doesn't exists --- librestage | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/librestage b/librestage index d8eae19..b474bb1 100755 --- a/librestage +++ b/librestage @@ -99,6 +99,11 @@ for _arch in ${ARCHES[@]}; do canonical="" for _repo in ${repos[@]}; do + if [ ! -d "${WORKDIR}/staging/${_repo}" ]; then + warning "[${_repo}] didn't exist, creating..." + mkdir -p "${WORKDIR}/staging/${_repo}" + fi + if [ -z "$canonical" ]; then canonical="${WORKDIR}/staging/${_repo}/${pkgfile}" -- cgit v1.2.3