summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2011-12-12 09:16:34 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2011-12-12 09:16:34 +0000
commit308d0e324c88777fd71a34eb3665c48ea019ff5e (patch)
treeb7c7146c284e0ad6c7ff1299ebf5e1d7bf6503b7 /morph
parent72ac2db983130cdcf3ccf83fbf6a4040e93d776b (diff)
parenta4da32f5a81c8bc6d660404724cedc3bc0914a75 (diff)
downloadmorph-308d0e324c88777fd71a34eb3665c48ea019ff5e.tar.gz
Merge branch 'richardmaw/login'
Diffstat (limited to 'morph')
-rwxr-xr-xmorph4
1 files changed, 3 insertions, 1 deletions
diff --git a/morph b/morph
index 84ccefbc..cbee2305 100755
--- a/morph
+++ b/morph
@@ -88,7 +88,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)