If no packages are found to upgrade, it didn't make sense to build gcc runtime before is only a waste of time.
Signed-off-by: Aníbal Limón <anibal.li...@linux.intel.com> --- upgradehelper.py | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 499c539..386cbcc 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -500,20 +500,6 @@ class Updater(object): return pkgs_to_upgrade_ordered def run(self, package_list=None): - I(" Building gcc runtimes ...") - for machine in self.opts['machines']: - I(" building gcc runtime for %s" % machine) - try: - self.bb.complete("gcc-runtime", machine) - except Exception as e: - E(" Can't build gcc-runtime for %s." % machine) - - if isinstance(e, Error): - E(e.stdout) - else: - import traceback - traceback.print_exc(file=sys.stdout) - pkgs_to_upgrade = self._order_pkgs_to_upgrade( self._get_packages_to_upgrade(package_list)) total_pkgs = len(pkgs_to_upgrade) @@ -532,6 +518,21 @@ class Updater(object): pkgs_ctx[p]['base_dir'] = self.uh_recipes_all_dir I(" ############################################################") + if pkgs_to_upgrade: + I(" Building gcc runtimes ...") + for machine in self.opts['machines']: + I(" building gcc runtime for %s" % machine) + try: + self.bb.complete("gcc-runtime", machine) + except Exception as e: + E(" Can't build gcc-runtime for %s." % machine) + + if isinstance(e, Error): + E(e.stdout) + else: + import traceback + traceback.print_exc(file=sys.stdout) + succeeded_pkgs_ctx = [] failed_pkgs_ctx = [] attempted_pkgs = 0 -- 2.1.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto