summaryrefslogtreecommitdiff
path: root/morphlib/execute.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-12-06 14:32:06 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-12-06 14:32:06 +0000
commit4ed178367c727b3a3b34c35dc34c461b2d0ff45d (patch)
tree4160a9cedf5ddff1ec1fe4131205aadd63e92c7c /morphlib/execute.py
parentcd79d2ba24240c564655f4eed38f51060a256316 (diff)
downloadmorph-4ed178367c727b3a3b34c35dc34c461b2d0ff45d.tar.gz
add logging to debug failure to execute stuff
(The real fix was --keep-path. I wish we had bootstrapped Baserock already.)
Diffstat (limited to 'morphlib/execute.py')
-rw-r--r--morphlib/execute.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/execute.py b/morphlib/execute.py
index cb49d866..afad1317 100644
--- a/morphlib/execute.py
+++ b/morphlib/execute.py
@@ -58,6 +58,9 @@ class Execute(object):
argv = ['sudo'] + argv # pragma: no cover
elif as_fakeroot:
argv = ['fakeroot'] + argv
+ logging.debug('run: argv=%s' % repr(argv))
+ logging.debug('run: env=%s' % repr(self.env))
+ logging.debug('run: cwd=%s' % repr(self.dirname))
p = subprocess.Popen(argv, shell=False,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
@@ -85,6 +88,9 @@ class Execute(object):
argv = ['sudo'] + argv # pragma: no cover
elif as_fakeroot:
argv = ['fakeroot'] + argv
+ logging.debug('runv: argv=%s' % repr(argv))
+ logging.debug('runv: env=%s' % repr(self.env))
+ logging.debug('runv: cwd=%s' % repr(self.dirname))
self.msg('# %s' % ' '.join(argv))
p = subprocess.Popen(argv, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, cwd=self.dirname)