diff options
| author | ianb <devnull@localhost> | 2005-06-10 22:37:44 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-06-10 22:37:44 +0000 |
| commit | 62f2e58dcbc34903de81b7eebf466fd48aa30676 (patch) | |
| tree | ff08060b0a89f7775b3abf8695dfcb6393ca44ed /paste | |
| parent | 961effc787d7228a5f6538f9f9c8ec7bef5e9cc3 (diff) | |
| download | paste-62f2e58dcbc34903de81b7eebf466fd48aa30676.tar.gz | |
Make copy_dir respect simulate (closes #7)
Diffstat (limited to 'paste')
| -rw-r--r-- | paste/app_setup.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/paste/app_setup.py b/paste/app_setup.py index 0ae6262..bdbdded 100644 --- a/paste/app_setup.py +++ b/paste/app_setup.py @@ -708,9 +708,10 @@ def copy_dir(source, dest, vars, verbosity, simulate): content = _substitute_content(content, vars) if verbosity: print 'Copying %s to %s' % (full, dest_full) - f = open(dest_full, 'wb') - f.write(content) - f.close() + if not simulate: + f = open(dest_full, 'wb') + f.write(content) + f.close() def _substitute_filename(fn, vars): for var, value in vars.items(): |
