bitbake-layers: hide deprecation warnings
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 16 Apr 2012 22:31:58 +0000 (23:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Apr 2012 10:41:31 +0000 (11:41 +0100)
There are a number of DeprecationWarnings within BitBake code which
bitbake itself filters out; bitbake-layers was not doing this, resulting
in a stream of warnings printed out when used with Python < 2.7 (these
warnings default to disabled on version 2.7 and above.)

(Bitbake rev: 0a2378237f07eb1c812e2308e64b7d70781e2b39)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/bin/bitbake-layers

index bbd56fe..6d35386 100755 (executable)
@@ -9,6 +9,7 @@
 
 import cmd
 import logging
+import warnings
 import os
 import sys
 import fnmatch
@@ -28,6 +29,7 @@ import bb.fetch2
 
 logger = logging.getLogger('BitBake')
 
+warnings.filterwarnings("ignore", category=DeprecationWarning)
 
 def main(args):
     # Set up logging