[Fai-commit] r4686 - trunk/lib
    lange at alioth.debian.org 
    lange at alioth.debian.org
       
    Sat Nov 10 17:01:12 UTC 2007
    
    
  
Author: lange
Date: 2007-11-10 17:01:12 +0000 (Sat, 10 Nov 2007)
New Revision: 4686
Modified:
   trunk/lib/subroutines-linux
Log:
catch exit code from install_packages
Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2007-11-10 16:59:57 UTC (rev 4685)
+++ trunk/lib/subroutines-linux	2007-11-10 17:01:12 UTC (rev 4686)
@@ -240,10 +240,13 @@
     echo "Installing software may take a while"
     if [ "$debug" ]; then
 	install_packages | tee -a $LOGDIR/software.log
+	task_error $?
     elif [ "$verbose" ]; then
 	install_packages </dev/null 2>&1 | tee -a $LOGDIR/software.log
+	task_error $?
     else
 	install_packages </dev/null >> $LOGDIR/software.log 2>&1
+	task_error $?
     fi
     # This almost indicates an error
     egrep "^E:" $LOGDIR/software.log && task_error 1
    
    
More information about the Fai-commit
mailing list