Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r14474 - main/trunk/pym/_emerge
Date: Fri, 02 Oct 2009 20:41:15
Message-Id: E1MtowE-0004fE-DS@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-10-02 20:41:13 +0000 (Fri, 02 Oct 2009)
3 New Revision: 14474
4
5 Modified:
6 main/trunk/pym/_emerge/depgraph.py
7 Log:
8 Bug #287333 - If posible, use ebuild from tree when checking for keyword mask
9 on installed packages.
10
11
12 Modified: main/trunk/pym/_emerge/depgraph.py
13 ===================================================================
14 --- main/trunk/pym/_emerge/depgraph.py 2009-10-02 20:40:28 UTC (rev 14473)
15 +++ main/trunk/pym/_emerge/depgraph.py 2009-10-02 20:41:13 UTC (rev 14474)
16 @@ -2332,18 +2332,17 @@
17 different_version = avail_pkg
18 break
19 if different_version is not None:
20 -
21 - if installed and \
22 - pkgsettings._getMissingKeywords(
23 - pkg.cpv, pkg.metadata):
24 - continue
25 -
26 # If the ebuild no longer exists or it's
27 # keywords have been dropped, reject built
28 # instances (installed or binary).
29 # If --usepkgonly is enabled, assume that
30 # the ebuild status should be ignored.
31 - if not usepkgonly:
32 + if usepkgonly:
33 + if installed and \
34 + pkgsettings._getMissingKeywords(
35 + pkg.cpv, pkg.metadata):
36 + continue
37 + else:
38 try:
39 pkg_eb = self._pkg(
40 pkg.cpv, "ebuild", root_config)