MockModuleBuilder: Fix thread safety problem with distgit-clone-wrapper

Multiple build threads would try to write to the same distgit-clone-wrapper
location, which could result in ETXTBSY when one thread tried to execute
a script that another was writing to or vice-versa.

Instead of using a wrapper script, use a sh -c invocation for distgit_get.

https://pagure.io/fm-orchestrator/issue/592
This commit is contained in:
Owen W. Taylor
2017-06-15 15:40:13 -04:00
parent 8ac5c67e2c
commit 40ececa5a0
2 changed files with 10 additions and 13 deletions

View File

@@ -301,7 +301,7 @@ class Config(object):
'type': dict,
'default': {
'git://pkgs.fedoraproject.org':
('fedpkg clone --anonymous $1',
('fedpkg clone --anonymous {}',
'fedpkg --release module sources'),
},
'desc': 'Mapping between dist-git and command to '},