[jhbuild] systeminstall: use PIPE to ignore stderr, not /dev/null



commit f2ebf8b820f22bab49ad86e355c89002ff99a6b1
Author: Craig Keogh <cskeogh adam com au>
Date:   Thu Nov 17 14:50:12 2011 +1030

    systeminstall: use PIPE to ignore stderr, not /dev/null

 jhbuild/utils/systeminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/utils/systeminstall.py b/jhbuild/utils/systeminstall.py
old mode 100644
new mode 100755
index 93d0581..5c8e3e3
--- a/jhbuild/utils/systeminstall.py
+++ b/jhbuild/utils/systeminstall.py
@@ -42,7 +42,7 @@ def get_installed_pkgconfigs(config):
     for pkg in pkgs:
         args = ['pkg-config', '--modversion']
         args.append(pkg)
-        proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=open('/dev/null'),
+        proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
                                 close_fds=True, env=config.get_original_environment())
         stdout = proc.communicate()[0]
         proc.wait()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]