From: Zac Medico Date: Tue, 23 Oct 2007 22:58:53 +0000 (-0000) Subject: Match packages against arguments earlier in X-Git-Tag: v2.2_pre1~535 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b3cdedf4290dc033a4e6f8e62a1d0c3273872373;p=portage.git Match packages against arguments earlier in depgraph._select_package() so that corrupt PROVIDE is detected sooner. svn path=/main/trunk/; revision=8261 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index e20447182..4cea91890 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2007,6 +2007,15 @@ class depgraph(object): metadata["USE"] = pkgsettings.get("USE","") else: metadata["USE"] = "" + myarg = None + if root == self.target_root: + try: + myarg = self._set_atoms.findAtomForPackage( + cpv, metadata) + except portage.exception.InvalidDependString: + if not installed: + # masked by corruption + continue if not installed: try: if not visible(pkgsettings, cpv, metadata, @@ -2090,15 +2099,6 @@ class depgraph(object): self._reinstall_for_flags( forced_flags, old_use, old_iuse, cur_use, cur_iuse) - myarg = None - if root == self.target_root: - try: - myarg = self._set_atoms.findAtomForPackage( - cpv, metadata) - except portage.exception.InvalidDependString: - if not installed: - # masked by corruption - continue if not installed: if myarg: found_available_arg = True