Commit 906a5981 authored by Sebastien Robin's avatar Sebastien Robin

do not change set in loop

parent 21a7feda
from setuptools import setup, find_packages from setuptools import setup, find_packages
name = "erp5.recipe.testnode" name = "erp5.recipe.testnode"
version = '1.0.19' version = '1.0.21'
def read(name): def read(name):
return open(name).read() return open(name).read()
......
...@@ -99,10 +99,14 @@ repository = %(repository_path)s ...@@ -99,10 +99,14 @@ repository = %(repository_path)s
# kill processes from previous loop if any # kill processes from previous loop if any
for pgpid in process_group_pid_set: for pgpid in process_group_pid_set:
try: try:
process_group_pid_set.remove(pgpid)
os.killpg(pgpid, signal.SIGTERM) os.killpg(pgpid, signal.SIGTERM)
except: except:
pass pass
while True:
try:
process_group_pid_set.pop()
except KeyError:
break
# Make sure we have local repository # Make sure we have local repository
if not os.path.exists(repository_path): if not os.path.exists(repository_path):
parameter_list = [config['git_binary'], 'clone', parameter_list = [config['git_binary'], 'clone',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment