diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-06-12 01:45:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-13 12:16:10 +0100 |
commit | 71765a90d1ff455608a006ed32cf42110e779217 (patch) | |
tree | b436758db931ec128ccf192e98515a6cfae6c22a /bitbake | |
parent | f2e5d884617d22d8bb473db6848e3dcc68813b9d (diff) | |
download | poky-71765a90d1ff455608a006ed32cf42110e779217.tar.gz |
bitbake: cooker.py: fix warn() -> warning()
Fixed:
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
(Bitbake rev: a3f464d202dafef4538e66c008cdecb7b8709ed1)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 2154ef49c4..ce818f3e59 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1576,7 +1576,7 @@ class BBCooker: | |||
1576 | ignore = (self.expanded_data.getVar("ASSUME_PROVIDED", True) or "").split() | 1576 | ignore = (self.expanded_data.getVar("ASSUME_PROVIDED", True) or "").split() |
1577 | for pkg in pkgs_to_build: | 1577 | for pkg in pkgs_to_build: |
1578 | if pkg in ignore: | 1578 | if pkg in ignore: |
1579 | parselog.warn("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) | 1579 | parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) |
1580 | 1580 | ||
1581 | if 'world' in pkgs_to_build: | 1581 | if 'world' in pkgs_to_build: |
1582 | bb.providers.buildWorldTargetList(self.recipecache) | 1582 | bb.providers.buildWorldTargetList(self.recipecache) |
@@ -1585,7 +1585,7 @@ class BBCooker: | |||
1585 | pkgs_to_build.append(t) | 1585 | pkgs_to_build.append(t) |
1586 | 1586 | ||
1587 | if 'universe' in pkgs_to_build: | 1587 | if 'universe' in pkgs_to_build: |
1588 | parselog.warn("The \"universe\" target is only intended for testing and may produce errors.") | 1588 | parselog.warning("The \"universe\" target is only intended for testing and may produce errors.") |
1589 | parselog.debug(1, "collating packages for \"universe\"") | 1589 | parselog.debug(1, "collating packages for \"universe\"") |
1590 | pkgs_to_build.remove('universe') | 1590 | pkgs_to_build.remove('universe') |
1591 | for t in self.recipecache.universe_target: | 1591 | for t in self.recipecache.universe_target: |
@@ -1867,7 +1867,7 @@ class CookerCollectFiles(object): | |||
1867 | for collection, pattern, regex, _ in self.bbfile_config_priorities: | 1867 | for collection, pattern, regex, _ in self.bbfile_config_priorities: |
1868 | if regex in unmatched: | 1868 | if regex in unmatched: |
1869 | if d.getVar('BBFILE_PATTERN_IGNORE_EMPTY_%s' % collection, True) != '1': | 1869 | if d.getVar('BBFILE_PATTERN_IGNORE_EMPTY_%s' % collection, True) != '1': |
1870 | collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) | 1870 | collectlog.warning("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) |
1871 | 1871 | ||
1872 | return priorities | 1872 | return priorities |
1873 | 1873 | ||