gnu: lpsolve: Fail as early as possible.

* gnu/packages/maths.scm (lpsolve)[arguments]: In 'build' phase, check
the return value of 'system*' and honor it.
This commit is contained in:
Ludovic Courtès 2016-07-26 00:40:54 +02:00
parent e83a13faa2
commit 6689d09457
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 4 additions and 5 deletions

View File

@ -2198,11 +2198,10 @@ specifications.")
(delete 'configure)
(replace 'build
(lambda _
(with-directory-excursion "lpsolve55"
(system* "bash" "ccc"))
(with-directory-excursion "lp_solve"
(system* "bash" "ccc"))
#t))
(and (with-directory-excursion "lpsolve55"
(zero? (system* "bash" "ccc")))
(with-directory-excursion "lp_solve"
(zero? (system* "bash" "ccc"))))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))