diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-04-27 23:33:17 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-04-27 23:35:39 +0200 |
commit | a17417a812614eee2a7e39155712d7efe814f559 (patch) | |
tree | 4325ef45395add1f7c495996529fa2480ae18b93 /guix | |
parent | 151065d02a75dde396fd537f09fb89fa4b8821c2 (diff) | |
download | gnu-guix-a17417a812614eee2a7e39155712d7efe814f559.tar gnu-guix-a17417a812614eee2a7e39155712d7efe814f559.tar.gz |
challenge: Use exit code 2 when discrepancies are found.
Suggested by John Darrington <john@darrington.wattle.id.au>.
* guix/scripts/challenge.scm (guix-challenge): Exit with 2 when MISSING
is not empty.
* doc/guix.texi (Invoking guix challenge): Document it.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/scripts/challenge.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/scripts/challenge.scm b/guix/scripts/challenge.scm index 0eb49da0cc..149647cfdf 100644 --- a/guix/scripts/challenge.scm +++ b/guix/scripts/challenge.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2015, 2016 Ludovic Courtès <ludo@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -237,7 +237,7 @@ Challenge the substitutes for PACKAGE... provided by one or more servers.\n")) (issues (discrepancies items urls))) (for-each summarize-discrepancy issues) (unless (null? issues) - (exit 1)) + (exit 2)) (return (null? issues))) #:system system))))))) |