On Wed, Dec 15, 2010 at 07:28:13 +0000, Florent Becker wrote:
> Fri Dec 10 17:02:00 CET 2010 Florent Becker <florent.becker@ens-lyon.org>
> * Don't require --darcs when it's not needed in darcs-test executable
Applied, thanks.
Don't require --darcs when it's not needed in darcs-test executable
-------------------------------------------------------------------
> - - when (null (darcs conf)) $ fail ("No darcs specified. Perhaps --darcs `pwd`/dist/build/darcs/darcs?")
> - - when (not (isAbsolute (darcs conf))) $ fail ("Argument to --darcs should be an absolute path")
> + when (shell conf || network conf || failing conf) $ do
> + when (null $ darcs conf) $
> + fail ("No darcs specified. Perhaps --darcs `pwd`/dist/build/darcs/darcs?")
> + when (not (isAbsolute (darcs conf))) $
> + fail ("Argument to --darcs should be an absolute path")
Only require --darcs if we're actually calling darcs (ie. in some kind
of shell test)
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey@jabber.fr (Jabber or Google Talk only)
|