Commit 618312be authored by Jason R. Coombs's avatar Jason R. Coombs

Refactor to short-circuit on dry-run

parent de000c41
......@@ -828,8 +828,10 @@ class easy_install(Command):
target = os.path.join(self.script_dir, script_name)
self.add_output(target)
mask = current_umask()
if not self.dry_run:
return
mask = current_umask()
ensure_directory(target)
if os.path.exists(target):
os.unlink(target)
......
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