Print sentences need to be displayed as information in the logger this unifies logger facilities.
[YOCTO #7489] Signed-off-by: Aníbal Limón <anibal.li...@linux.intel.com> --- recipe.py | 9 ++++----- upgradehelper.py | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/recipe.py b/recipe.py index 55eb5bf..6fd8f24 100644 --- a/recipe.py +++ b/recipe.py @@ -376,11 +376,11 @@ class Recipe(object): "been updated! View diff? (Y/n)" % (self.env['PN'], license_file)) answer = sys.stdin.readline().strip().upper() if answer == '' or answer == 'Y': - print(" ################ Licence file diff #################") + I(" ################ Licence file diff #################") with open(self.license_diff_file) as diff: - print("%s" % diff.read()) - print(" ####################################################") - print("Retry compilation? (Y/n)") + I("%s" % diff.read()) + I(" ####################################################") + I(" Retry compilation? (Y/n)") answer = sys.stdin.readline().strip().upper() if answer == '' or answer == 'Y': return True @@ -647,7 +647,6 @@ class Recipe(object): if not self._license_issue_handled(log_file): raise LicenseError() - #retry self.compile(machine) elif failed_task == "do_fetch": diff --git a/upgradehelper.py b/upgradehelper.py index a4aa0ab..be15e1f 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -514,7 +514,7 @@ class Updater(object): exit(0) if (attempted_pkgs > 1): - print("%s" % self.statistics.pkg_stats()) + I("%s" % self.statistics.pkg_stats()) if self.send_email: self.send_status_mail() @@ -647,10 +647,10 @@ class UniverseUpdater(Updater): last_check.write(current_date + "," + cur_master_commit + "," + last_checkpkg_file) - print("########### The list of recipes to be upgraded ############") + I(" ########### The list of recipes to be upgraded ############") for p, v, m in pkgs_list: - print("%s,%s,%s" % (p, v, m)) - print("############################################################") + I(" %s, %s, %s" % (p, v, m)) + I(" ############################################################") return pkgs_list -- 1.8.4.5 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto