| |
@@ -334,9 +334,9 @@
|
| |
|
| |
def scm_option_get(self, package_name, branch):
|
| |
return {
|
| |
- "git": branch and "git_get=git clone --depth 1 --branch {branch} {0} {1}" or \
|
| |
- "git_get=git clone --depth 1 {0} {1}",
|
| |
- "svn": "git_get=git svn clone {0} {1}"
|
| |
+ "git": branch and "'git_get=git clone --depth 1 --branch {branch} {0} {1}'" or \
|
| |
+ "'git_get=git clone --depth 1 {0} {1}'",
|
| |
+ "svn": "'git_get=git svn clone {0} {1}'"
|
| |
}[self.task.mock_scm_type].format(self.task.mock_scm_url, package_name, branch=branch)
|
| |
|
| |
|
| |
The entirety of scm_option_get's output is an argument to an option for mock, but missing quotes left mock trying to interpret arguments intended for the scm backend. Affected builds reported at https://ask.fedoraproject.org/en/question/100066/ . Here's a rough test: