diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-24 16:23:42 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-24 16:23:42 +0100 |
commit | 6c93b6e015234bb132c4f44cc2201f03adee63e5 (patch) | |
tree | 1ee9bc508c3c3bfba51ec428a13fce03a7188a02 /morph | |
parent | f985052b15ea636566bf3d32fd1b88ed74b2390c (diff) | |
download | morph-6c93b6e015234bb132c4f44cc2201f03adee63e5.tar.gz |
Only remove temporary directory if it exists
Diffstat (limited to 'morph')
-rwxr-xr-x | morph | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -262,7 +262,7 @@ class Morph(cliapp.Application): if staging_root != '/': staging_area.remove() - if staging_temp != '/': + if staging_temp != '/' and os.path.exists(staging_temp): shutil.rmtree(staging_temp) def cmd_show_dependencies(self, args): |