git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@276
ec8d2aa5-1599-4edb-8739-
2b3a1bc399aa
while True:
if name in self.scripts:
- if 'cmd' in self.scripts[name]:
- if len(self.scripts[name].cmd):
+ cmd = self.scripts[name].cmd
+ if cmd is not None:
+ if len(cmd):
i += 1
name = template % (i)
else:
if do_it:
msg = _("Executing postrun script '%s' ...") % (postscript)
self.logger.info(msg)
- if not self.scripts[prescript].execute():
+ if not self.scripts[postscript].execute():
return
self.scripts[postscript].done_postrun = True