mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-05 08:46:34 +01:00
Fix build error management.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
parent
64e16fefab
commit
dff0d70720
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue