Ubuntu Pastebin

Paste from sergiusens at Thu, 17 Sep 2015 22:12:02 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
=== modified file 'snapcraft/common.py'
--- snapcraft/common.py	2015-09-17 18:02:05 +0000
+++ snapcraft/common.py	2015-09-17 22:09:34 +0000
@@ -41,8 +41,12 @@
 def run(cmd, **kwargs):
     assert isinstance(cmd, list), "run command must be a list"
     # FIXME: This is gross to keep writing this, even when env is the same
+    env = assemble_env()
+    print()
+    print(env)
+    print()
     with tempfile.NamedTemporaryFile(mode='w+') as f:
-        f.write(assemble_env())
+        f.write(env)
         f.write('\n')
         f.write('exec $*')
         f.flush()
Download as text