summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/buildinfohelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/buildinfohelper.py')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 93979054d5..ff4da78cdb 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -664,8 +664,8 @@ class ORMWrapper(object):
664 dep_type = tdeptype, 664 dep_type = tdeptype,
665 target = target_obj)) 665 target = target_obj))
666 except KeyError as e: 666 except KeyError as e:
667 logger.warn("Could not add dependency to the package %s " 667 logger.warning("Could not add dependency to the package %s "
668 "because %s is an unknown package", p, px) 668 "because %s is an unknown package", p, px)
669 669
670 if len(packagedeps_objs) > 0: 670 if len(packagedeps_objs) > 0:
671 Package_Dependency.objects.bulk_create(packagedeps_objs) 671 Package_Dependency.objects.bulk_create(packagedeps_objs)
@@ -673,7 +673,7 @@ class ORMWrapper(object):
673 logger.info("No package dependencies created") 673 logger.info("No package dependencies created")
674 674
675 if len(errormsg) > 0: 675 if len(errormsg) > 0:
676 logger.warn("buildinfohelper: target_package_info could not identify recipes: \n%s", errormsg) 676 logger.warning("buildinfohelper: target_package_info could not identify recipes: \n%s", errormsg)
677 677
678 def save_target_image_file_information(self, target_obj, file_name, file_size): 678 def save_target_image_file_information(self, target_obj, file_name, file_size):
679 Target_Image_File.objects.create( target = target_obj, 679 Target_Image_File.objects.create( target = target_obj,
@@ -932,7 +932,7 @@ class BuildInfoHelper(object):
932 return lvo 932 return lvo
933 933
934 #if we get here, we didn't read layers correctly; dump whatever information we have on the error log 934 #if we get here, we didn't read layers correctly; dump whatever information we have on the error log
935 logger.warn("Could not match layer version for recipe path %s : %s", path, self.orm_wrapper.layer_version_objects) 935 logger.warning("Could not match layer version for recipe path %s : %s", path, self.orm_wrapper.layer_version_objects)
936 936
937 #mockup the new layer 937 #mockup the new layer
938 unknown_layer, _ = Layer.objects.get_or_create(name="Unidentified layer", layer_index_url="") 938 unknown_layer, _ = Layer.objects.get_or_create(name="Unidentified layer", layer_index_url="")
@@ -1003,7 +1003,7 @@ class BuildInfoHelper(object):
1003 self.internal_state['lvs'][self.orm_wrapper.get_update_layer_object(layerinfos[layer], self.brbe)] = layerinfos[layer]['version'] 1003 self.internal_state['lvs'][self.orm_wrapper.get_update_layer_object(layerinfos[layer], self.brbe)] = layerinfos[layer]['version']
1004 self.internal_state['lvs'][self.orm_wrapper.get_update_layer_object(layerinfos[layer], self.brbe)]['local_path'] = layerinfos[layer]['local_path'] 1004 self.internal_state['lvs'][self.orm_wrapper.get_update_layer_object(layerinfos[layer], self.brbe)]['local_path'] = layerinfos[layer]['local_path']
1005 except NotExisting as nee: 1005 except NotExisting as nee:
1006 logger.warn("buildinfohelper: cannot identify layer exception:%s ", nee) 1006 logger.warning("buildinfohelper: cannot identify layer exception:%s ", nee)
1007 1007
1008 1008
1009 def store_started_build(self, event, build_log_path): 1009 def store_started_build(self, event, build_log_path):
@@ -1240,14 +1240,14 @@ class BuildInfoHelper(object):
1240 self.orm_wrapper.save_target_package_information(self.internal_state['build'], target, imgdata, pkgdata, self.internal_state['recipes'], built_package=True) 1240 self.orm_wrapper.save_target_package_information(self.internal_state['build'], target, imgdata, pkgdata, self.internal_state['recipes'], built_package=True)
1241 self.orm_wrapper.save_target_package_information(self.internal_state['build'], target, imgdata.copy(), pkgdata, self.internal_state['recipes'], built_package=False) 1241 self.orm_wrapper.save_target_package_information(self.internal_state['build'], target, imgdata.copy(), pkgdata, self.internal_state['recipes'], built_package=False)
1242 except KeyError as e: 1242 except KeyError as e:
1243 logger.warn("KeyError in save_target_package_information" 1243 logger.warning("KeyError in save_target_package_information"
1244 "%s ", e) 1244 "%s ", e)
1245 1245
1246 try: 1246 try:
1247 self.orm_wrapper.save_target_file_information(self.internal_state['build'], target, filedata) 1247 self.orm_wrapper.save_target_file_information(self.internal_state['build'], target, filedata)
1248 except KeyError as e: 1248 except KeyError as e:
1249 logger.warn("KeyError in save_target_file_information" 1249 logger.warning("KeyError in save_target_file_information"
1250 "%s ", e) 1250 "%s ", e)
1251 1251
1252 1252
1253 1253
@@ -1392,7 +1392,7 @@ class BuildInfoHelper(object):
1392 Task_Dependency.objects.bulk_create(taskdeps_objects) 1392 Task_Dependency.objects.bulk_create(taskdeps_objects)
1393 1393
1394 if len(errormsg) > 0: 1394 if len(errormsg) > 0:
1395 logger.warn("buildinfohelper: dependency info not identify recipes: \n%s", errormsg) 1395 logger.warning("buildinfohelper: dependency info not identify recipes: \n%s", errormsg)
1396 1396
1397 1397
1398 def store_build_package_information(self, event): 1398 def store_build_package_information(self, event):