cfengine/masterfiles — pull request #285 by adyxax (2014-07-12 13:07:03+00:00)
Title: Fixed gentoo package list regex

Hello,

I have been using this modified regex for my gentoo boxes for quite some time and thought it was about time I tried to contribute something to this great tool.

The original regex doesn't match packages full names, which is unfortunate since if you omit the first part of a package name there are duplicates in the portage tree. For example dev-libs/mpc (A library for multiprecision complex arithmetic) and media-sound/mpc (Music player daemon cli client).

I don't know how widely cfengine is used on gentoo and as this change will break promises for people relying on the former regex to install packages this pull request might get rejected. But the current implementation has a flaw, so I leave this matter into the capable hands and good judgment of cfengine maintainers.

Have a nice day,
--
Julien Dessaux