Skip to content

Commit

Permalink
Fix removal of files when purge try changes.
Browse files Browse the repository at this point in the history
Was broken in f77caa6.
  • Loading branch information
maruel committed Dec 2, 2009
1 parent 09260e6 commit c34b070
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildbot/slave/commands.py
Expand Up @@ -1876,7 +1876,7 @@ def _purgeAndUpdate(self):
args = ['--xml']
if self.ignore_ignores:
args.append('--no-ignore')
return self._dovccmd('status', args, keepStdout=True,
return self._dovccmd('status', args, keepStdout=True, sendStdout=False,
cb=self._purgeAndUpdate2)

def _purgeAndUpdate2(self, res):
Expand All @@ -1888,6 +1888,7 @@ def _purgeAndUpdate2(self, res):
continue
filepath = os.path.join(self.builder.basedir, self.workdir,
filename)
self.sendStatus({'stdout': "%s\n" % filepath})
if os.path.isfile(filepath):
os.chmod(filepath, 0700)
os.remove(filepath)
Expand Down

0 comments on commit c34b070

Please sign in to comment.