chiark / gitweb /
git-debpush: introduce and call fail_check
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 17 Jul 2019 07:01:00 +0000 (08:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 17 Jul 2019 13:12:27 +0000 (14:12 +0100)
commitdc1baff42723c52e17b5b90fc9b433225798fc61
treeacd6141daad272be7d35696df0960c5d46167227
parent2ce2ae1def65bb0f9ce5b5ee5ea6734bdc1238a4
git-debpush: introduce and call fail_check

Without this, passing --force to override an earlier sanity check
might cause the user to miss the output of a later sanity check, which
would never get run.

We don't want to have multiple forcing options to override different
sanity checks, as that is too much complexity for a script like this.

So always run all checks, and error out afterwards if at least one of
them failed.

Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
git-debpush