summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
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 /bitbake/bin
parent993c46751097e3528adbae51f21b4607cd964cdb (diff)
downloadpoky-04d6aa1069f68562cc28167c4bf9f0096789ec7f.tar.gz
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>
Diffstat (limited to 'bitbake/bin')
-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 @@
9 9
10import cmd 10import cmd
11import logging 11import logging
12import warnings
12import os 13import os
13import sys 14import sys
14import fnmatch 15import fnmatch
@@ -28,6 +29,7 @@ import bb.fetch2
28 29
29logger = logging.getLogger('BitBake') 30logger = logging.getLogger('BitBake')
30 31
32warnings.filterwarnings("ignore", category=DeprecationWarning)
31 33
32def main(args): 34def main(args):
33 # Set up logging 35 # Set up logging