summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-04-16 23:31:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-17 11:41:31 +0100
commit04d6aa1069f68562cc28167c4bf9f0096789ec7f (patch)
tree6a8230c832b1cf583ec30435163f0a52109a157b
parent993c46751097e3528adbae51f21b4607cd964cdb (diff)
downloadpoky-04d6aa1069f68562cc28167c4bf9f0096789ec7f.tar.gz
poky-04d6aa1069f68562cc28167c4bf9f0096789ec7f.tar.bz2
poky-04d6aa1069f68562cc28167c4bf9f0096789ec7f.zip
bitbake-layers: hide deprecation warnings
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>
-rwxr-xr-xbitbake/bin/bitbake-layers2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers
index bbd56fe219..6d35386cad 100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -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