diff options
-rwxr-xr-x | fullpkg-ng | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -177,10 +177,6 @@ function find_deps { function _pkg_build () { pushd ${build_dir} > /dev/null - # Exit loop on Ctrl+C - trap "break" INT - # Remove from queue package being built on error - trap "remove_queue" EXIT INT QUIT TERM KILL build_packages=$(sort -gr $buildorder | cut -d: -f2) while [ ${#build_packages[@]} -ge 1 ]; do build_packages=$(sort -gr $buildorder | cut -d: -f2) @@ -301,6 +297,10 @@ done } # Build only [ $build_only == 'y' ] && { + # Exit loop on Ctrl+C + trap "break" INT + # Remove from queue package being built on error + trap "remove_queue" EXIT INT QUIT TERM KILL _pkg_build exit 0 } @@ -352,6 +352,10 @@ find_deps || { msg "Building packages:" [ ! -w $queue_file ] && error "can't write queue file" +# Exit loop on Ctrl+C +trap "break" INT +# Remove from queue package being built on error +trap "remove_queue" EXIT INT QUIT TERM KILL _pkg_build echo |