Commit 9d45f02e authored by Jason R. Coombs's avatar Jason R. Coombs

Always generate the lines, even in dry run.

--HG--
extra : amend_source : fa41c3fb787b667f703f67a52aed7a2958e615b4
parent c3f158dc
...@@ -11,6 +11,8 @@ CHANGES ...@@ -11,6 +11,8 @@ CHANGES
documentation. documentation.
* Some code refactoring and cleanup was done with no intended behavioral * Some code refactoring and cleanup was done with no intended behavioral
changes. changes.
* During install_egg_info, the generated lines for namespace package .pth
files are now processed even during a dry run.
--- ---
5.1 5.1
......
...@@ -68,11 +68,13 @@ class install_egg_info(Command): ...@@ -68,11 +68,13 @@ class install_egg_info(Command):
filename += '-nspkg.pth' filename += '-nspkg.pth'
self.outputs.append(filename) self.outputs.append(filename)
log.info("Installing %s", filename) log.info("Installing %s", filename)
lines = map(self._gen_nspkg_line, nsp)
if self.dry_run: if self.dry_run:
# always generate the lines, even in dry run
list(lines)
return return
lines = map(self._gen_nspkg_line, nsp)
with open(filename, 'wt') as f: with open(filename, 'wt') as f:
f.writelines(lines) f.writelines(lines)
......
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