From 15e57341f03043a299c425f1572cc28ae4b7f51d Mon Sep 17 00:00:00 2001
From: Scott Kitterman <scott@kitterman.com>
Date: Mon, 8 Aug 2011 10:33:36 -0400
Subject: [PATCH]   * debpyhton/pydist: Incorporate patch from Jonathan Lange
 to stop printing     to stderr (LP: #812960)

---
 debian/changelog    | 6 +++++-
 debpython/pydist.py | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4780ed8..25fac8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,7 +10,11 @@ python-defaults (2.7.2-5) UNRELEASED; urgency=low
       packages)
   * pyclean now accepts --package and private dir argument at the same time
 
- -- Piotr Ożarowski <piotr@debian.org>  Thu, 28 Jul 2011 00:23:50 +0200
+  [ Scott Kitterman ]
+  * debpyhton/pydist: Incorporate patch from Jonathan Lange to stop printing
+    to stderr (LP: #812960)
+
+ -- Scott Kitterman <scott@kitterman.com>  Mon, 08 Aug 2011 10:28:50 -0400
 
 python-defaults (2.7.2-4) experimental; urgency=low
 
diff --git a/debpython/pydist.py b/debpython/pydist.py
index fdfb183..781b71f 100644
--- a/debpython/pydist.py
+++ b/debpython/pydist.py
@@ -156,7 +156,7 @@ def guess_dependency(req, version=None):
 
     log.debug("invoking dpkg -S %s", query)
     process = Popen("/usr/bin/dpkg -S %s" % query, \
-                    shell=True, stdout=PIPE)
+                    shell=True, stdout=PIPE, stderr=PIPE)
     stdout, stderr = process.communicate()
     if process.returncode == 0:
         result = set()
-- 
GitLab