Fix build error management.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-07-13 15:38:42 +00:00
parent 64e16fefab
commit dff0d70720

View file

@ -2877,9 +2877,10 @@ build_package() {
# $1 = the package path # $1 = the package path
# $2 = the package name # $2 = the package name
# Returns: # Returns:
# 0 if the program built successfully, or if the user asked to ignore # 0 if the program built successfully;
# an error; # 1 if the build failed but the user asked to continue the queue
# 1 in case of problems. # processing
# 2 if the build failed and the user asked to stop the queue processing
# When processing a queue, the caller should continue processing the # When processing a queue, the caller should continue processing the
# queue items if build_package returns 0, and stop if it returns 1. # queue items if build_package returns 0, and stop if it returns 1.
@ -2943,11 +2944,11 @@ build_package() {
error_read ANS error_read ANS
case $ANS in case $ANS in
y* | Y* ) # Continue y* | Y* ) # Continue
RETVAL=0 RETVAL=1
break 2 break 2
;; ;;
n* | N* ) # Abort n* | N* ) # Abort
RETVAL=1 RETVAL=2
rm -f $SBOPKGTMP/sbopkg_build.lck rm -f $SBOPKGTMP/sbopkg_build.lck
break 2 break 2
;; ;;