aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-12-03 15:01:30 -0800
committerZac Medico <zmedico@gentoo.org>2020-12-03 15:07:06 -0800
commitff270ae58eca457a1e2bbf9507d8438123082ca0 (patch)
tree6821ca4396303719d72fa8efc073df09e6ffc756 /lib/_emerge/depgraph.py
parentMergeOrderTestCase: fix x11-drivers/xf86-video-fbdev slot operator deps (diff)
downloadportage-ff270ae58eca457a1e2bbf9507d8438123082ca0.tar.gz
portage-ff270ae58eca457a1e2bbf9507d8438123082ca0.tar.bz2
portage-ff270ae58eca457a1e2bbf9507d8438123082ca0.zip
depgraph._add_pkg: fix AttributeError when myparent is not a Package
Fixes: b991f23ad915 ("Allow a package to replace its own buildtime dependency") Bug: https://bugs.gentoo.org/757741 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge/depgraph.py')
-rw-r--r--lib/_emerge/depgraph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index 0450291d4..f3e834a60 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -3107,7 +3107,7 @@ class depgraph:
self._frozen_config.myopts,
modified_use=self._pkg_use_enabled(pkg))),
level=logging.DEBUG, noiselevel=-1)
- elif (pkg.installed and myparent and
+ elif (pkg.installed and isinstance(myparent, Package) and
pkg.root == myparent.root and
pkg.slot_atom == myparent.slot_atom):
# If the parent package is replacing the child package then