diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-22 13:57:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-22 13:57:14 +0000 |
commit | 2760f35c57e86ad1396d7dd9d26cc4e37f84a430 (patch) | |
tree | 29de419dba325be2336ba8425ed14767d398b329 | |
parent | 3935984872fce282ad1f82ead0385748e8393fb0 (diff) | |
download | abuild-2760f35c57e86ad1396d7dd9d26cc4e37f84a430.tar.gz abuild-2760f35c57e86ad1396d7dd9d26cc4e37f84a430.tar.bz2 abuild-2760f35c57e86ad1396d7dd9d26cc4e37f84a430.tar.xz abuild-2760f35c57e86ad1396d7dd9d26cc4e37f84a430.zip |
abump: print what packages failed
-rwxr-xr-x | abump.in | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -18,7 +18,7 @@ fi # version bump packages do_bump() { - local p rc=0 name ver section message + local p rc=0 errors=0 failed= name ver section message local upgrade="${cvelist:+security }upgrade" local a for p; do @@ -64,9 +64,15 @@ fixes #${fixes#\#} git add APKBUILD git commit -m"$message" ) - rc=$(( $rc + $? )) + if [ $? -ne 0 ]; then + errors=$(( $errors + 1 )) + failed="$failed $p" + fi done - return $rc + if [ -n "$failed" ]; then + error "Failed: $failed" + fi + return $errors } usage() { |