From 6c93b6e015234bb132c4f44cc2201f03adee63e5 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 24 Apr 2012 16:23:42 +0100 Subject: Only remove temporary directory if it exists --- morph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morph') diff --git a/morph b/morph index 2f4c4d44..aa78b4c7 100755 --- a/morph +++ b/morph @@ -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): -- cgit v1.2.1