[Reportbug-commits] [reportbug] 01/03: BF: commands.getotput strips trailing newline, so it has to be re-added
Sandro Tosi
morph at moszumanska.debian.org
Sun Jan 26 19:45:36 UTC 2014
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch yoh_master
in repository reportbug.
commit 8acf2aae0d7a28dbdd97c0ce326312aafdd14108
Author: Yaroslav Halchenko <debian at onerussian.com>
Date: Wed Dec 22 18:43:47 2010 -0500
BF: commands.getotput strips trailing newline, so it has to be re-added
---
reportbug/utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/reportbug/utils.py b/reportbug/utils.py
index 9d241c6..f0a33d2 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -718,7 +718,7 @@ def get_debian_release_info():
return debinfo
def lsb_release_info():
- return commands.getoutput('lsb_release -a 2>/dev/null')
+ return commands.getoutput('lsb_release -a 2>/dev/null') + '\n'
def get_arch():
arch = commands.getoutput('COLUMNS=79 dpkg --print-installation-architecture 2>/dev/null')
@@ -728,7 +728,7 @@ def get_arch():
arch = re.sub(r'i[456]86', 'i386', arch)
arch = re.sub(r's390x', 's390', arch)
arch = re.sub(r'ppc', 'powerpc', arch)
- return arch
+ return arch + '\n'
def generate_blank_report(package, pkgversion, severity, justification,
depinfo, confinfo, foundfile='', incfiles='',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list