summaryrefslogtreecommitdiff
path: root/graphics/py-pyfits/patches/patch-stsci_distutils_hack.py
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/py-pyfits/patches/patch-stsci_distutils_hack.py')
-rw-r--r--graphics/py-pyfits/patches/patch-stsci_distutils_hack.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/py-pyfits/patches/patch-stsci_distutils_hack.py b/graphics/py-pyfits/patches/patch-stsci_distutils_hack.py
new file mode 100644
index 00000000000..8f3123b5e06
--- /dev/null
+++ b/graphics/py-pyfits/patches/patch-stsci_distutils_hack.py
@@ -0,0 +1,24 @@
+$NetBSD: patch-stsci_distutils_hack.py,v 1.1 2012/04/07 11:32:30 joerg Exp $
+
+--- stsci_distutils_hack.py.orig 2010-04-14 11:20:48.000000000 +0000
++++ stsci_distutils_hack.py
+@@ -237,8 +237,8 @@ def __get_svn_rev__(path):
+ try:
+ # with popen3, stderr goes into a pipe where we ignore it,
+ # This means the user does not see errors.
+- cmd = 'svnversion '+path
+- (sin, sout, serr) = os.popen3(cmd)
++ cmd = 'svnversion %s 2>/dev/null' % path
++ sout = os.popen(cmd)
+
+ # pick up the first line of output
+ m=sout.read().strip()
+@@ -261,7 +261,7 @@ def __get_full_info__(path):
+ try:
+ # with popen3, stderr goes into a pipe where we ignore it,
+ # This means the user does not see errors.
+- (sin, sout, serr) = os.popen3('svn info %s' % path)
++ sout = os.popen('svn info %s 2>/dev/null' % path)
+
+ # pick up all the lines of output
+ info = [l.strip() for l in sout.readlines()]