[Reportbug-maint] Bug#523684: reportbug: Wrong typing in lsb_release_info()

Carl Chenet chaica at ohmytux.com
Sat Apr 11 21:36:57 UTC 2009

Package: reportbug
Version: 3.38ubuntu2.1
Severity: normal
Tags: patch


Here is a patch to correct a wrong typing in lsb_release_info() from
reportbug/utils.py, allowing undetermined behaviour of reportbug when
(if ever) used with another bts than the debian one.

Wrong typing :
/den/null -> /dev/null

Carl Chenet

-- Package-specific info:

-- System Information:
Debian Release: lenny/sid
  APT prefers gutsy-updates
  APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-15-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt                      0.7.6ubuntu14.1 Advanced front-end for dpkg
ii  python                   2.5.1-1ubuntu2  An interactive high-level object-o
ii  python-central           0.5.15ubuntu2   register and build utility for Pyt

reportbug recommends no packages.

-- no debconf information
-------------- next part --------------
>From 20f8f6bb81c2d9f971a06dbc54799418dc0e75c0 Mon Sep 17 00:00:00 2001
From: shawee <shawee at shawee-laptop.(none)>
Date: Sat, 11 Apr 2009 23:19:23 +0200
Subject: [PATCH] Correct /den/null to /dev/null

 reportbug/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/reportbug/utils.py b/reportbug/utils.py
index 6680bdd..acd3979 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -676,7 +676,7 @@ def get_debian_release_info():
     return debinfo
 def lsb_release_info():
-    return commands.getoutput('lsb_release -a 2>/den/null')
+    return commands.getoutput('lsb_release -a 2>/dev/null')
 def get_arch():
     arch = commands.getoutput('COLUMNS=79 dpkg --print-installation-architecture 2>/dev/null')

More information about the Reportbug-maint mailing list