mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3535
This commit is contained in:
parent
9dcc18cb1a
commit
44fccc448b
|
@ -99,6 +99,9 @@ class ConfigDictList(list):
|
|||
new_cd = ConfigDict(new_element)
|
||||
self.append(new_cd)
|
||||
return new_cd
|
||||
def remove_node(self, item):
|
||||
self.remove(item)
|
||||
self._node.removeChild(item._node)
|
||||
|
||||
class XMLConfig:
|
||||
'''Base class for xml config files'''
|
||||
|
|
|
@ -438,14 +438,10 @@ def do_prune_run_states():
|
|||
|
||||
if not prune_run_state:
|
||||
return
|
||||
new_run_state_tasks = []
|
||||
for run_state_task in run_state.tasks:
|
||||
if run_state_task.prunable:
|
||||
print 'Deleting obsolete run_state task', run_state_task.cmd, '(last run %s)' %timestamp(float(run_state_task.last_run))
|
||||
else:
|
||||
new_run_state_tasks.append(run_state_task)
|
||||
# replace all elements of existing ConfigDictList instead of assigning a new one
|
||||
run_state.tasks[:] = new_run_state_tasks
|
||||
run_state.tasks.remove_node(run_state_task)
|
||||
|
||||
def stop_daemon(pid):
|
||||
'''returns 1 if something stopped, else 0'''
|
||||
|
|
Loading…
Reference in New Issue