Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79364 - eupdatedb fails with empty directories in CVS
Summary: eupdatedb fails with empty directories in CVS
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-24 10:41 UTC by Dominik Stadler (RETIRED)
Modified: 2005-01-31 12:49 UTC (History)
1 user (show)

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 Dominik Stadler (RETIRED) gentoo-dev 2005-01-24 10:41:24 UTC
During the last few weeks, some empty directories showed up in my Portage-CVS-tree, e.g. /usr/portage/app-doc/ebook-gtk-2.0, there are around 10 others. 

Somehow these keep getting created when I run "cvs up -d". 

eupdated is failing if such an empty directory exists with the following error message:

# rm /tmp/esearchdb.py.tmp ; eupdatedb
 * indexing: 10354 ebuilds to goTraceback (most recent call last):
  File "/usr/sbin/eupdatedb", line 155, in ?
    pkgv = portage.portdb.xmatch("bestmatch-visible", pkg)
  File "/usr/lib/portage/pym/portage.py", line 5431, in xmatch
    myval=best(self.xmatch("match-visible",None,mydep=mydep,mykey=mykey))
  File "/usr/lib/portage/pym/portage.py", line 5442, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep=mydep,mykey=mykey))
  File "/usr/lib/portage/pym/portage.py", line 3966, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (app-doc/ebook-gtk-2.0) (try adding an '=')"


I'm not sure if these directories need to be removed or eupdatedb/portage should be adjusted to handle these better.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2005-01-25 00:56:25 UTC
add a -P to your cvs update to get rid of those dirs.
Comment 2 Dominik Stadler (RETIRED) gentoo-dev 2005-01-31 12:49:14 UTC
Thanks, that did the trick! Setting to WORKSFORME, as no change was necessary to fix it.