Commit 54a6951
committed
query: fix AttributeError when query includes category
portage.dep.Atom uses __slots__, so cpv, _cp, and _version are
absent from atom.__dict__; copying it into Query left those attrs
unset. CPV's lazy property accessors then raised AttributeError
(e.g. "equery f app-shells/bash").
Signed-off-by: Matt Turner <mattst88@gentoo.org>1 parent 8e0b310 commit 54a6951
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
0 commit comments