Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 634402

Summary: sys-apps/portage: vardbapi raises KeyError if a file exists where a directory is expected
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: 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: ---

Description Zac Medico gentoo-dev 2017-10-16 02:43:03 UTC
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'
Comment 1 Zac Medico gentoo-dev 2017-12-02 20:55:38 UTC

*** This bug has been marked as a duplicate of bug 229335 ***