Commit e6f40ea4 authored by Jeremy Hylton's avatar Jeremy Hylton

Fix bug in recent change to logging code.

mode is not computed in dry_run mode, so it can't be included in the
log message.
parent a2f9989c
......@@ -49,7 +49,7 @@ class install_scripts (Command):
# all the scripts we just installed.
for file in self.get_outputs():
if self.dry_run:
log.info("changing mode of %s to %o", file, mode)
log.info("changing mode of %s", file)
else:
mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777
log.info("changing mode of %s to %o", file, mode)
......
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