summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-27 02:53:40 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-27 02:53:40 -0700
commit9a31128ea29f2fb3f4bde03273d671a0e01332bf (patch)
tree16d7cdf42baa24b83944a7d2d3d398cd29a08753
parenta4a4d87786e6c0c34370870af2071904d6184a9d (diff)
downloadportage-9a31128ea29f2fb3f4bde03273d671a0e01332bf.tar.gz
portage-9a31128ea29f2fb3f4bde03273d671a0e01332bf.tar.bz2
portage-9a31128ea29f2fb3f4bde03273d671a0e01332bf.zip
config: fix AttributeError: 'NoneType' errors
This is a regression from commit 1fdeb78d08bac14f3f999f112499d179a87cf342 and it can only be triggered when repo-level package.use is present.
-rw-r--r--pym/portage/package/ebuild/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index 8b1a1a11a..a8c6ad665 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -1148,7 +1148,7 @@ class config(object):
d = d.copy()
cpdict = self._use_manager._repo_puse_dict.get(repo, {}).get(cp)
if cpdict:
- repo_puse = ordered_by_atom_specificity(cpdict, pkg)
+ repo_puse = ordered_by_atom_specificity(cpdict, cpv_slot)
if repo_puse:
for x in repo_puse:
d["USE"] = d.get("USE", "") + " " + " ".join(x)