allura
修訂 | 8c911f078420f13c4a7f1f714c5ee893bf8c18c2 (tree) |
---|---|
時間 | 2012-06-13 19:07:25 |
作者 | Igor Bondarenko <jetmind2@gmai...> |
Commiter | Igor Bondarenko |
[#4258] ticket:84 Use communicate instead of wait.
@@ -188,9 +188,8 @@ class SVNImplementation(M.RepositoryImplementation): | ||
188 | 188 | |
189 | 189 | def check_call(cmd): |
190 | 190 | p = Popen(cmd, stdout=PIPE, stderr=PIPE) |
191 | - p.wait() | |
191 | + stdout, stderr = p.communicate() | |
192 | 192 | if p.returncode != 0: |
193 | - stdout, stderr = p.communicate() | |
194 | 193 | raise SVNCalledProcessError(cmd, p.returncode, stdout, stderr) |
195 | 194 | |
196 | 195 | check_call(['svnsync', 'init', self._url, source_url]) |