diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-02-13 11:39:23 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-02-13 11:39:23 +0200 |
commit | f2017078f8fd3ce1f227a45482cf50edb4ff2d68 (patch) | |
tree | 85dd985b20c739fa9caa2aa12aacf2b52da91e94 /do-until | |
parent | 7b4c9edee05dedfd853a97b4e1da171d69769b62 (diff) | |
download | extrautils-f2017078f8fd3ce1f227a45482cf50edb4ff2d68.tar.gz |
Add a try counter to do-until
Diffstat (limited to 'do-until')
-rwxr-xr-x | do-until | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,9 +60,9 @@ class DoUntil(cliapp.Application): p.communicate() if p.returncode == 0: break - sys.stderr.write('do-until: command failed, ' + sys.stderr.write('do-until: attempt %d failed, ' 'trying again in %d second(s)\n' % - self.settings['sleep']) + (tries, self.settings['sleep'])) time.sleep(self.settings['sleep']) |