Ubuntu Pastebin

Paste from Chipaca at Thu, 13 Aug 2015 10:54:01 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
=== modified file 'aptsources/distro.py'
--- aptsources/distro.py	2014-10-24 10:16:01 +0000
+++ aptsources/distro.py	2015-08-13 10:53:41 +0000
@@ -484,11 +484,11 @@
 
 def _system_image_channel():
     """Get the current channel from system-image-cli -i if possible."""
-    from subprocess import Popen, PIPE
+    from subprocess import Popen, PIPE, DEVNULL
     import errno
     try:
         out = Popen(
-            ['system-image-cli', '-i'], stdout=PIPE,
+            ['system-image-cli', '-i'], stdout=PIPE, stderr=DEVNULL,
             universal_newlines=True).communicate()[0]
         for l in out.splitlines():
             if l.startswith('channel: '):
Download as text