Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634402 - sys-apps/portage: vardbapi raises KeyError if a file exists where a directory is expected
Summary: sys-apps/portage: vardbapi raises KeyError if a file exists where a directory...
Status: RESOLVED DUPLICATE of bug 229335
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL: https://forums.gentoo.org/viewtopic.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-16 02:43 UTC by Zac Medico
Modified: 2017-12-02 20:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***