diff options
| -rw-r--r-- | doc/guix.texi | 7 | ||||
| -rw-r--r-- | guix/scripts/challenge.scm | 4 | ||||
| -rw-r--r-- | scripts/guix.in | 5 |
3 files changed, 14 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index aeeec617e0c..a16422261ab 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -5582,7 +5582,7 @@ $ guix challenge @var{package} | |||
| 5582 | 5582 | ||
| 5583 | @noindent | 5583 | @noindent |
| 5584 | where @var{package} is a package specification such as | 5584 | where @var{package} is a package specification such as |
| 5585 | @code{guile-2.0} or @code{glibc:debug}. | 5585 | @code{guile@@2.0} or @code{glibc:debug}. |
| 5586 | 5586 | ||
| 5587 | The general syntax is: | 5587 | The general syntax is: |
| 5588 | 5588 | ||
| @@ -5590,6 +5590,11 @@ The general syntax is: | |||
| 5590 | guix challenge @var{options} [@var{packages}@dots{}] | 5590 | guix challenge @var{options} [@var{packages}@dots{}] |
| 5591 | @end example | 5591 | @end example |
| 5592 | 5592 | ||
| 5593 | When a difference is found between the hash of a locally-built item and | ||
| 5594 | that of a server-provided substitute, or among substitutes provided by | ||
| 5595 | different servers, the command displays it as in the example above and | ||
| 5596 | exits with a non-zero return code. | ||
| 5597 | |||
| 5593 | The one option that matters is: | 5598 | The one option that matters is: |
| 5594 | 5599 | ||
| 5595 | @table @code | 5600 | @table @code |
diff --git a/guix/scripts/challenge.scm b/guix/scripts/challenge.scm index 4a0c865b07f..0eb49da0cc7 100644 --- a/guix/scripts/challenge.scm +++ b/guix/scripts/challenge.scm | |||
| @@ -233,9 +233,11 @@ Challenge the substitutes for PACKAGE... provided by one or more servers.\n")) | |||
| 233 | 233 | ||
| 234 | (run-with-store store | 234 | (run-with-store store |
| 235 | (mlet* %store-monad ((items (mapm %store-monad | 235 | (mlet* %store-monad ((items (mapm %store-monad |
| 236 | ensure-store-item files)) | 236 | ensure-store-item files)) |
| 237 | (issues (discrepancies items urls))) | 237 | (issues (discrepancies items urls))) |
| 238 | (for-each summarize-discrepancy issues) | 238 | (for-each summarize-discrepancy issues) |
| 239 | (unless (null? issues) | ||
| 240 | (exit 1)) | ||
| 239 | (return (null? issues))) | 241 | (return (null? issues))) |
| 240 | #:system system))))))) | 242 | #:system system))))))) |
| 241 | 243 | ||
diff --git a/scripts/guix.in b/scripts/guix.in index 8f2d8a6433f..5d6921dd09d 100644 --- a/scripts/guix.in +++ b/scripts/guix.in | |||
| @@ -64,4 +64,9 @@ | |||
| 64 | (apply guix-main (command-line)))) | 64 | (apply guix-main (command-line)))) |
| 65 | 65 | ||
| 66 | (maybe-augment-load-paths!) | 66 | (maybe-augment-load-paths!) |
| 67 | |||
| 68 | ;; XXX: It would be more convenient to change it to: | ||
| 69 | ;; (exit (run-guix-main)) | ||
| 70 | ;; but since the 'guix' command is not updated by 'guix pull', we cannot | ||
| 71 | ;; really do it now. | ||
| 67 | (run-guix-main)) | 72 | (run-guix-main)) |
