Merge lp:~chipaca/python-apt/no-stderr-for-you-mister-system-image-cli into lp:~deity/python-apt/debian-sid

Proposed by John Lenton on 2015-08-13
Status: Rejected
Rejected by: Julian Andres Klode on 2015-08-13
Proposed branch: lp:~chipaca/python-apt/no-stderr-for-you-mister-system-image-cli
Merge into: lp:~deity/python-apt/debian-sid
Diff against target: 17 lines (+2/-2)
1 file modified
aptsources/distro.py (+2/-2)
To merge this branch: bzr merge lp:~chipaca/python-apt/no-stderr-for-you-mister-system-image-cli
Reviewer Review Type Date Requested Status
Julian Andres Klode 2015-08-13 Disapprove on 2015-08-13
Review via email: mp+267935@code.launchpad.net

Description of the Change

Discard stderr when calling system-image-cli. Avoids spurious error messages when system-image-cli is installed on a non-"Ubuntu-RTM" machine.

To post a comment you must log in.
Julian Andres Klode (juliank) wrote :

Please send a git patch against the debian/sid git branch to <email address hidden>, we do not use bazaar anymore.

review: Disapprove
John Lenton (chipaca) wrote :

Hm, I have never done that before. I have now done so, but please let me know if it's wrong or missing something.

Thank you!

Unmerged revisions

891. By John Lenton on 2015-08-13

throw away stderr when calling system-image-cli

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: