From 8fa72c0d34ffb96327ebd3008b5529465b54b88f Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 24 Oct 2007 10:41:55 +0200 Subject: [PATCH 1/1] buildd/functions.sh: do not mv files if there was an error --- buildd/functions.sh | 6 ++++-- debian/changelog | 17 ++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/buildd/functions.sh b/buildd/functions.sh index d5c65ef..d33955b 100755 --- a/buildd/functions.sh +++ b/buildd/functions.sh @@ -94,8 +94,10 @@ mutt -s "$SCRIPTNAME [${DATE}] - $RC_INFO" \ # make sure we store the final iso: store_iso() { - [ -d "$ISO_DIR" ] || mkdir "$ISO_DIR" - mv $OUTPUT_DIR/grml_isos/$ISO_NAME $ISO_DIR + if [ "$RC" = "0" ] ; then + [ -d "$ISO_DIR" ] || mkdir "$ISO_DIR" + mv $OUTPUT_DIR/grml_isos/$ISO_NAME $ISO_DIR + fi } # allow clean exit: diff --git a/debian/changelog b/debian/changelog index 87bf9c0..a274270 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,12 +1,15 @@ grml-live (0.0.7) unstable; urgency=low - * Reworked buildd concept. Now we have a seperate - /usr/share/grml-live/buildd/functions.sh for generic - stuff and /etc/grml/grml-buildd.conf as configuration - file. Use grml-buildd.{stdout,stderr} instead of - grml-live.{stdout,stderr} as log files. - * Use version number of grml-live inside script and write - it to the logs as well. + * Reworked buildd concept. + - Now we have a seperate + /usr/share/grml-live/buildd/functions.sh for generic stuff + and /etc/grml/grml-buildd.conf as configuration file. + - Use grml-buildd.{stdout,stderr} instead of + grml-live.{stdout,stderr} as log files. + - buildd/functions.sh: do not mv files if there was an error + during grml-live execution + * Use version number of grml-live inside script and write it to + the logs as well. * Log executed grml-live command line. * Set FAI_DEBOOTSTRAP_OPTS="--exclude=dhcp-client,info" by default. -- 2.1.4