Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-13 08:20:56 +0200
committerErich Eckner <git@eckner.net>2018-09-13 08:20:56 +0200
commitd044fdddb2af0f84fcb520bc38b5403f348a94a9 (patch)
tree55e261ba79284df27e78d6ba59347c6f83e76263 /bin
parentfe1fdabaefa5a9e3919211c2b54974c1c1426466 (diff)
bin/build-packages: exit if return-assignment reports usage error
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/build-packages b/bin/build-packages
index ecf98e7..6e0554b 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -713,7 +713,7 @@ while [ "${count}" -ne 0 ] && \
;;
*)
>&2 echo "unknown return code ${err} from 'return-assignment'"
- wait_some_time 60
+ exit ${err}
esac
done
success=true
@@ -759,12 +759,13 @@ while [ "${count}" -ne 0 ] && \
>&2 echo 'I was too slow, the package is outdated. I will continue ...'
break
;;
- 4)
+ 5)
>&2 echo '"return-assignment" was called with wrong arguments.'
+ exit 1
;;
*)
>&2 echo "unknown return code ${err} from 'return-assignment'"
- wait_some_time 60
+ exit ${err}
esac
done
fi