Commit 1711d27
committed
query: fix missing operator attribute on Query objects
portage.dep.Atom now uses __slots__ and exposes operator as a
read-only @Property backed by _operator, so it no longer appears in
atom.__dict__. Query.__init__ copies atom.__dict__ into self but
never picked up operator, same gap already patched here for cpv,
_version, and _cp. Dependencies (a Query subclass) then lacked
.operator entirely, crashing equery d with AttributeError when
Atom.intersects() compared against it.
Bug: https://bugs.gentoo.org/981521
Signed-off-by: Matt Turner <mattst88@gentoo.org>1 parent a90f843 commit 1711d27
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
0 commit comments