diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-10 14:58:23 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-10 14:58:23 -0300 |
commit | 4ef5bc5568d52e4ee151b1e0f7e10e840c9bc588 (patch) | |
tree | 9ce3b969bf87056b125d384d8bbe2e9ec9a4dad3 | |
parent | 112b6427bf299b9db8fc34e5b771fecf1958db07 (diff) |
Create repo dir if it doesn't exists
-rwxr-xr-x | librestage | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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}" |