summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/providers.py
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2021-07-06 20:20:02 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-10 23:11:33 +0100
commit6b25d75ca8022e03cfefcc1596b39b555bf9a988 (patch)
tree0e7b66e7bde79b1d7ca6b646a5d6609e0c48d4e0 /bitbake/lib/bb/providers.py
parent0c39b42cb16ad25dee00b0b8a97ef4c64dfefb09 (diff)
downloadpoky-6b25d75ca8022e03cfefcc1596b39b555bf9a988.tar.gz
bitbake: providers: replace newly added logger.warn() with logger.warning()
Commits https://git.openembedded.org/bitbake/commit/?id=78cd63285713fde59506eb2e71a7b7ee59a594ff and https://git.openembedded.org/bitbake/commit/?id=5cbf6d95fc1009e78e7d0745a49e0bf418b37abb added few calls to logger.warn(), which is deprecated and instead should use logger.warning(): https://lists.openembedded.org/g/bitbake-devel/topic/82742194#12377 (Bitbake rev: a28ba2d31cd3aa557d4977e9376c5d01cd863e9a) Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/providers.py')
-rw-r--r--bitbake/lib/bb/providers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py
index 3ec11a40e1..516d45e4aa 100644
--- a/bitbake/lib/bb/providers.py
+++ b/bitbake/lib/bb/providers.py
@@ -133,7 +133,7 @@ def findPreferredProvider(pn, cfgData, dataCache, pkg_pn = None, item = None):
133 133
134 if required_v is not None: 134 if required_v is not None:
135 if preferred_v is not None: 135 if preferred_v is not None:
136 logger.warn("REQUIRED_VERSION and PREFERRED_VERSION for package %s%s are both set using REQUIRED_VERSION %s", pn, itemstr, required_v) 136 logger.warning("REQUIRED_VERSION and PREFERRED_VERSION for package %s%s are both set using REQUIRED_VERSION %s", pn, itemstr, required_v)
137 else: 137 else:
138 logger.debug("REQUIRED_VERSION is set for package %s%s", pn, itemstr) 138 logger.debug("REQUIRED_VERSION is set for package %s%s", pn, itemstr)
139 # REQUIRED_VERSION always takes precedence over PREFERRED_VERSION 139 # REQUIRED_VERSION always takes precedence over PREFERRED_VERSION
@@ -173,7 +173,7 @@ def findPreferredProvider(pn, cfgData, dataCache, pkg_pn = None, item = None):
173 pv_str = '%s:%s' % (preferred_e, pv_str) 173 pv_str = '%s:%s' % (preferred_e, pv_str)
174 if preferred_file is None: 174 if preferred_file is None:
175 if not required: 175 if not required:
176 logger.warn("preferred version %s of %s not available%s", pv_str, pn, itemstr) 176 logger.warning("preferred version %s of %s not available%s", pv_str, pn, itemstr)
177 available_vers = [] 177 available_vers = []
178 for file_set in pkg_pn: 178 for file_set in pkg_pn:
179 for f in file_set: 179 for f in file_set:
@@ -185,7 +185,7 @@ def findPreferredProvider(pn, cfgData, dataCache, pkg_pn = None, item = None):
185 available_vers.append(ver_str) 185 available_vers.append(ver_str)
186 if available_vers: 186 if available_vers:
187 available_vers.sort() 187 available_vers.sort()
188 logger.warn("versions of %s available: %s", pn, ' '.join(available_vers)) 188 logger.warning("versions of %s available: %s", pn, ' '.join(available_vers))
189 if required: 189 if required:
190 logger.error("required version %s of %s not available%s", pv_str, pn, itemstr) 190 logger.error("required version %s of %s not available%s", pv_str, pn, itemstr)
191 else: 191 else: