Summary: | sys-apps/portage: vardbapi raises KeyError if a file exists where a directory is expected | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Zac Medico <zmedico> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | https://forums.gentoo.org/viewtopic.php?p=8130492 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
*** This bug has been marked as a duplicate of bug 229335 *** |
It would be nice if emerge gave a more informative error message when it finds a file where a directory is expected: > File "_emerge/Scheduler.py", line 1751, in _task > previous_cpv = [x for x in vardb.match(pkg.slot_atom) \ > File "portage/dbapi/vartree.py", line 599, in match > self.cp_list(mydep.cp, use_cache=use_cache))) > File "portage/dbapi/vartree.py", line 466, in cp_list > self.aux_get(cpv, self._aux_cache_keys))) > File "portage/dbapi/vartree.py", line 788, in aux_get > mydata.update(self._aux_get(mycpv, aux_keys, st=mydir_stat)) > File "portage/dbapi/vartree.py", line 820, in _aux_get > raise KeyError(mycpv) > KeyError: 'x11-misc/xdg-utils-1.1.1-r1'