summaryrefslogtreecommitdiff
path: root/math/py-rpy/patches/patch-aa
blob: d3f6dafe6ac6e9dd4b8300c8deac4a3771cf1791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.5 2010/02/15 16:32:20 joerg Exp $

--- rpy_tools.py.orig	2006-06-20 19:22:37.000000000 +0000
+++ rpy_tools.py
@@ -93,7 +93,7 @@ def get_R_VERSION(RHOME=None, force_exec
     if stat or len(output)<=0:
       raise RuntimeError("Couldn't execute the R interpreter" +
                          " `%s'.\n" % rexec )
-    version = re.search("R +([0-9]\.[0-9]\.[0-9])", output)
+    version = re.search("R version +([0-9]+\.[0-9]+\.[0-9]+)", output)
     if not version:
       raise RuntimeError("Couldn't obtain version number from output\n"
                                "of `R --version'.\n")