diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-16 13:44:27 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-16 22:40:14 +0100 |
commit | 223328e90bbec5bd8a0c55bf1a0f0f609e8154ac (patch) | |
tree | 56314dc33559982854a75785343e93d4dcd6bfc7 | |
parent | 1f7c6ee4c561d4010b6c0dd824ecf42eb0f9613b (diff) |
exit status: Fix dgit-badcommit-fixup to use Debian::Dgit::ExitStatus
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit-badcommit-fixup | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dgit-badcommit-fixup b/dgit-badcommit-fixup index 3995ceb..3e4a718 100755 --- a/dgit-badcommit-fixup +++ b/dgit-badcommit-fixup @@ -19,6 +19,8 @@ # # 4. Run the mirror script to push changes, if necessary. +END { $? = $Debian::Dgit::ExitStatus::desired // -1; }; +use Debian::Dgit::ExitStatus; use strict; @@ -283,7 +285,7 @@ filter_updates(); if (!@updates) { print Dumper(\%count), "all is well - nothing to do\n"; - exit 0; + finish 0; } #print Dumper(\@updates); @@ -325,5 +327,7 @@ if ($real >= 0) { print "testing output saved in refs/dgit-badfixuptest/\n" or die $!; } else { print STDERR "found work to do, exiting status 2\n"; - exit 2; + finish 2; } + +finish 0; |