]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
make it copy&pastable
authorMathias Klette <mathias.klette@profitbricks.com>
Thu, 15 Sep 2011 19:09:22 +0000 (21:09 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Thu, 15 Sep 2011 19:09:22 +0000 (21:09 +0200)
lib/git_buildpackage.py

index 549801c1df45982119bed6073f18cec7fcbba929..9921c7e4119e4dc22972fb77930e3a82ba10de33 100644 (file)
@@ -38,8 +38,16 @@ class GitBuildPackage(object):
         env['PB_SUITE'] = self.pb_suite
 
         logger.debug(
-                'Trying to call "%s" with enviroment "%s"'
-                %(' '.join(cmd), env)
+                'Trying to call "%s" with environment export %s'
+                %(
+                    ' '.join(cmd),
+                    ' '.join(
+                        map(
+                            lambda x: '%s="%s"' %(x[0], x[1]),
+                            env.iteritems()
+                        )
+                    )
+                )
         )
 
         cmdobj = subprocess.Popen(