import sys
import logging
import subprocess
-logger = logging.getLogger(__file__)
+logger = logging.getLogger(__file__)
BIN_GIT_BUILDPACKAGE = '/usr/bin/git-buildpackage'
BIN_SUDO = '/usr/bin/sudo'
# So in summary, it would be expensive and buys as nothing, as we
# can always generate the source from said git repos...
- logger.debug(
- 'Trying to call "%s" with environment export %s'
- %(
- ' '.join(self.command),
- ' '.join(
- map(
- lambda x: '%s="%s"' %(x[0], x[1]),
- self.env.iteritems()
- )
- )
- )
- )
-
cmdobj = subprocess.Popen(
self.command,
shell=False,
)
ret = cmdobj.wait()
- if ret:
- logger.error(
- '"%s" returned non-zero. exitcode was: %s'
- %(' '.join(self.command), ret)
- )
return ret