[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#555794: dh_ocamldoc: wrong regexp to detect ocamldoc flags

severity 555794 normal

Stefano Zacchiroli wrote:
> Package: dh-ocaml
> Version: 0.9.3
> Severity: important

IMHO, severity important looks a bit too much for such issues.

> The regexp to detect ocamldoc global flags looks like this:
>   if $ocamldoc_flags_global =~ / -package | -predicates | -syntax | -ppopt /;
> The spaces around the various alternatives should not be there and inhibit
> detecting flags at the beginning of the line.

The spaces around options are present on purpose to be *sure* that
ocamlfind has to be called. You can relax the regexp and look only for
the option name if you like it that way. It's a matter of taste. Adding
a space at the beginning of the line should fix your problem.


Mehdi Dogguy مهدي الدڤي

Reply to: