On 10/02/2012 08:28 AM, Alec Leamas wrote:
On 10/02/2012 08:14 AM, tim.lauridsen(a)gmail.com wrote:
>
>
> On Tue, Oct 2, 2012 at 8:05 AM, Alec Leamas <leamas.alec(a)gmail.com
> <mailto:leamas.alec@gmail.com>> wrote:
>
>
> File
>
"/home/hudson/.hudson/jobs/FedoraReview/workspace/src/FedoraReview/settings.py",
> line 52, in _check_mock_grp
> mock_gid = grp.getgrnam('mock')[2]
> KeyError: 'getgrnam(): name not found: mock'
>
> I am not sure we will be able to fix this last one... :-/
> Ideas welcome
>
>
> mock_gid = None
> if 'mock' in grp.getgrall():
> mock_gid = grp.getgrnam('mock')[2]
>
> Should fix that
>
> Tim
Assuming that mock is usable even if there's no mock group, that is
(sounds strange to me). Any such fix should be conditionalized either
on running tests or running on EPEL IMHO.
Where is the relevant EPEL mock package?
Well, it's at
http://dl.fedoraproject.org/pub/epel/6/SRPMS/repoview/mock.html. And it
does indeed install the mock group:
%pre
if [ $1 -eq 1 ]; then
groupadd -r mock >/dev/null 2>&1 || :
fi
So, it looks like mick is actually not installed in the jenkins instance
running f-r.