vaeth / eix

eix can access Gentoo portage ebuild information and description very quickly (using a local cache). It can also be used to access information on installed packages, local settings, and local and external overlays, and informs about changes in the tree
GNU General Public License v2.0
163 stars 12 forks source link

--proto output has categories without names and only one package per category #80

Closed wwjjbb closed 3 years ago

wwjjbb commented 3 years ago

$ eix --proto >look.pb

I was trying to figure out why there were >21000 categories in the protocol buffers data when I noticed that none of the categories had names and each category only contained one package.

Happens with versions 0.34.4 to 0.34.10

wwjjbb commented 3 years ago

The problem is in the code creating the categories, where its not maintaining the category index very well. its also quite confusing to follow, so here's a simpler version ....

0001-Fix-proto-output-category-processing.patch.txt

vaeth commented 3 years ago

Thank you for the report and the fix. The patch has the problem of duplicate lookup which I wanted to avoid. I will try to find a better version. In any case, I will put you to the AUTHORS file.

vaeth commented 3 years ago

Fixed in eix-0.34.11