update the shell script based on suggestions from dmach

Signed-off-by: root <root@compose-x86-01.phx2.fedoraproject.org>
This commit is contained in:
root 2015-07-24 18:09:00 +00:00 committed by Dennis Gilmore
parent 7f2b6e8f83
commit 41d8d5262e

View File

@ -5,22 +5,20 @@ export LC_ALL=C
CONFIG="fedora.conf"
TARGET_DIR="/mnt/koji/compose/rawhide"
DEBUG_MODE="--debug-mode"
DEBUG_MODE=""
#OLD_COMPOSES_DIR="--old-composes=/mnt/fedora_koji/compose/f23 --old-composes=$TARGET_DIR"
NIGHTLY="--nightly"
SKIP_PHASES="--skip-phase=productimg --skip-phase=createiso --skip-phase=buildinstall "
SKIP_PHASES=" "
SKIP_PHASES="--skip-phase=productimg"
# uncomment and edit for resuming a failed compose
#COMPOSE_ID="Fedora-23-20150530.n.0"
CMD="pungi-koji $DEBUG_MODE --config=$CONFIG $OLD_COMPOSES_DIR $NIGHTLY"
CMD="pungi-koji --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $NIGHTLY $SKIP_PHASES"
if [ -z "$COMPOSE_ID" ]; then
CMD="$CMD --target-dir=$TARGET_DIR"
else
CMD="$CMD --compose-dir=$TARGET_DIR/$COMPOSE_ID"
CMD="$CMD --debug-mode --compose-dir=$TARGET_DIR/$COMPOSE_ID"
fi
time $CMD "$SKIP_PHASES" "$@"
time $CMD "$@"