buildd/functions.sh: do not mv files if there was an error
authorMichael Prokop <devnull@localhost>
Wed, 24 Oct 2007 08:41:55 +0000 (10:41 +0200)
committerMichael Prokop <devnull@localhost>
Wed, 24 Oct 2007 08:41:55 +0000 (10:41 +0200)
buildd/functions.sh
debian/changelog

index d5c65ef..d33955b 100755 (executable)
@@ -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:
index 87bf9c0..a274270 100644 (file)
@@ -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.