Permalink
Browse files

OPAMDEBUG=1 means verbose mode / OPAMDEBUG=2 (or more) means debug (+…

…verbose)
  • Loading branch information...
1 parent d536940 commit 3dd8be798eaf8a3d31975ee138097df7721c728e @samoht samoht committed Jul 5, 2012
Showing with 6 additions and 3 deletions.
  1. +5 −2 src/globals.ml
  2. +1 −1 tests/Makefile
View
@@ -14,11 +14,14 @@
(***********************************************************************)
let debug = ref (
- try let (_:string) = Sys.getenv "OPAMDEBUG" in true
+ try int_of_string (Sys.getenv "OPAMDEBUG") >= 2
with _ -> false
)
-let verbose = ref false
+let verbose = ref (
+ try int_of_string (Sys.getenv "OPAMDEBUG") >= 1
+ with _ -> false
+)
let yes = ref false
View
@@ -25,7 +25,7 @@ PACKAGES = P1-1 P1-2 P2 P3 P4 P5
OCAMLVERSION = system
# opam in the path should not be a requirement
-ENV = OCAMLRUNPARAM=b OPAMDEBUG=1 OPAM_ROOT=$(OPAM_ROOT) PATH=$(BIN):$(PATH)
+ENV = OCAMLRUNPARAM=b OPAMDEBUG=2 OPAM_ROOT=$(OPAM_ROOT) PATH=$(BIN):$(PATH)
OPAM = $(ENV) opam --yes --root $(OPAM_ROOT)
CHECK = $(ENV) opam-check --root $(OPAM_ROOT)

0 comments on commit 3dd8be7

Please sign in to comment.