From 0f0734a94d3852ca425768d110bf6ed0001c483b Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer <sebastien.luttringer@smartjog.com> Date: Mon, 17 Oct 2011 17:49:10 +0200 Subject: [PATCH] Doesn't display warning when we are not in debug mode --- bin/is | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/is b/bin/is index af65a79..3dbe0c1 100755 --- a/bin/is +++ b/bin/is @@ -12,6 +12,7 @@ import time import datetime import re import fnmatch +import warnings import installsystems import installsystems.tools as istools import installsystems.argparse as argparse # to be removed when python2.7 @@ -469,6 +470,10 @@ try: # set debug and quiet mode after merge installsystems.debug = args.debug installsystems.quiet = args.quiet + # no warning if we are not in debug mode + if not installsystems.debug: + warnings.filterwarnings("ignore") + # except for install command we parse all args! if args.func is not c_install: args = p_main.parse_args(namespace=args) # let's go -- GitLab