summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
Diffstat (limited to 'morph')
-rwxr-xr-xmorph4
1 files changed, 3 insertions, 1 deletions
diff --git a/morph b/morph
index eda5cf58..562e6d4a 100755
--- a/morph
+++ b/morph
@@ -68,7 +68,9 @@ class Morph(cliapp.Application):
self.msg('Building %s - %s - %s' % (repo, ref, filename))
builder.build(repo, ref, filename)
- tempdir.remove()
+ # we may not have permission to tempdir.remove()
+ ex = morphlib.execute.Execute('.', lambda msg: None)
+ ex.runv(["rm", "-rf", tempdir.dirname], as_root=True)
if args:
raise cliapp.AppException('Extra args on command line: %s' % args)