Skip to content

Commit 1c0034f

Browse files
committed
Use direct pach /usr/bin/mock to avoid path conflict with /usr/sbin/mock.
1 parent 8ec67b8 commit 1c0034f

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

mock-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ const runMock = function(task) {
305305
'--rebuild', ROOTDIR + 'tasks/' + task.tid + '/' + path.basename(task.url),
306306
'--resultdir', ROOTDIR + 'tasks/' + task.tid + '/result'
307307
]
308-
const mockRun = spawn('mock', options2.concat(options));
308+
const mockRun = spawn('/usr/bin/mock', options2.concat(options));
309309

310310
debug.debug('Token request: %s', JSON.stringify(options2.concat(options), null, 2));
311311

mock-client.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: mock-client
2-
Version: 0.2.1
2+
Version: 0.2.2
33
Release: 1%{?dist}
44
Summary: Mock.fedberry.org agent to run builds.
55

@@ -90,6 +90,10 @@ cp mock-client.service %{buildroot}%{_unitdir}/mock-client.service
9090
%{_unitdir}/mock-client.service
9191

9292
%changelog
93+
* Mon Nov 7 2016 Gor Martsen <gor@fedberry.org> - 0.2.2-1
94+
- Use direct pach /usr/bin/mock to avoid path conflict with /usr/sbin/mock.
95+
96+
9397
* Mon Nov 7 2016 Gor Martsen <gor@fedberry.org> - 0.2.1-1
9498
- Enable and start service.
9599
- Fix issue with url trim.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mock-client",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Collect status tasks and post to github status api",
55
"main": "mock-client.js",
66
"scripts": {

0 commit comments

Comments
 (0)