summaryrefslogtreecommitdiff
path: root/g_cran
diff options
context:
space:
mode:
authorAuke Booij (tulcod) <auke@tulcod.com>2010-07-07 21:53:02 +0200
committerAuke Booij (tulcod) <auke@tulcod.com>2010-07-07 21:53:02 +0200
commitf708faad12662e956f47eea3c716b883153cf184 (patch)
tree841106b579041881c9d0f1f20198c182c272a523 /g_cran
parentOffset for PORTDIR setting line fixed. (diff)
downloadg-cran-f708faad12662e956f47eea3c716b883153cf184.tar.gz
g-cran-f708faad12662e956f47eea3c716b883153cf184.tar.bz2
g-cran-f708faad12662e956f47eea3c716b883153cf184.zip
PORTDIR regex code was slightly off, which gets fixed by this commit
Diffstat (limited to 'g_cran')
-rw-r--r--g_cran/cran_read.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g_cran/cran_read.py b/g_cran/cran_read.py
index 3ed5a65..6fe4039 100644
--- a/g_cran/cran_read.py
+++ b/g_cran/cran_read.py
@@ -18,7 +18,7 @@ def portage_dir():
conffile=open('/etc/make.conf')
for line in conffile:
if 'PORTDIR' in line and '=' in line:
- portage_location=re.sub('\"(.*)\"','\1',line[line.find('=')+1:]).strip()
+ portage_location=re.sub('\"(.*)\"','\\1',line[line.find('=')+1:]).strip()
elif os.path.exists('/usr/portage'): #default location
portage_location='/usr/portage'
else: