On Mon, Aug 8, 2011 at 1:33 AM, lkcl <l...@lkcl.net> wrote:
> Package: lsb-release
> Version: 3.2-27
> Severity: normal
> Tags: patch
>
> ok it's not exactly a patch but close:
> policy = commands.getoutput('LANG=C apt-cache policy 2>/dev/null')
>
> should be:
> policy = commands.getoutput('LANG=C apt-cache policy 2&>/dev/null')
>
> in lsb_release.py parse_apt_policy function

 ok, yep, right, i know i know - this is completely wrong :)  there's
something else going belly-up - shown here:

Traceback (most recent call last):
  File "/usr/bin/lsb_release", line 96, in <module>
    main()
  File "/usr/bin/lsb_release", line 60, in main
    distinfo = lsb_release.get_distro_information()
  File "/usr/lib/pymodules/python2.6/lsb_release.py", line 285, in
get_distro_information
    distinfo = guess_debian_release()
  File "/usr/lib/pymodules/python2.6/lsb_release.py", line 239, in
guess_debian_release
    rinfo = guess_release_from_apt()
  File "/usr/lib/pymodules/python2.6/lsb_release.py", line 170, in
guess_release_from_apt
    releases = parse_apt_policy()
  File "/usr/lib/pymodules/python2.6/lsb_release.py", line 154, in
parse_apt_policy
    policy = commands.getoutput('apt-cache policy 2>/dev/null')
  File "/usr/lib/python2.6/commands.py", line 46, in getoutput
    return getstatusoutput(cmd)[1]
  File "/usr/lib/python2.6/commands.py", line 57, in getstatusoutput
    sts = pipe.close()
IOError: [Errno 10] No child processes



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to