From: Zac Medico Date: Mon, 16 Nov 2009 00:35:16 +0000 (-0000) Subject: In the code from bug #288083, only show one LICENSE masking message per slot. X-Git-Tag: v2.1.7.5~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d044913b9a7a931148625c92276816580c9a0c61;p=portage.git In the code from bug #288083, only show one LICENSE masking message per slot. (trunk r14823) svn path=/main/branches/2.1.7/; revision=14840 --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index c750d24f8..864afc5a6 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2816,9 +2816,12 @@ class depgraph(object): # version that is not masked for any other reason. # Only do this for complete or deep graphs since # otherwise it is likely a waste of time. + got_mask = False for db, pkg_type, built, installed, db_keys in dbs: if installed: continue + if got_mask: + break for upgrade_pkg in self._iter_match_pkgs( root_config, pkg_type, pkg.slot_atom): if upgrade_pkg <= pkg: @@ -2829,6 +2832,7 @@ class depgraph(object): if pkgsettings._getMissingLicenses( upgrade_pkg.cpv, upgrade_pkg.metadata): self._dynamic_config._masked_license_updates.add(upgrade_pkg) + got_mask = True break blocker_atoms = None