summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Booij (tulcod) <auke@tulcod.com>2010-07-06 00:20:59 +0200
committerAuke Booij (tulcod) <auke@tulcod.com>2010-07-06 00:20:59 +0200
commit01300a1b4aa52cd1e7be5df597f45a5df3c322d4 (patch)
tree731626ad5d489a88efd53dd9687c8374f11b4b90
parentWhen a dependency package name can be found in portage, then it's used (diff)
downloadg-cran-01300a1b4aa52cd1e7be5df597f45a5df3c322d4.tar.gz
g-cran-01300a1b4aa52cd1e7be5df597f45a5df3c322d4.tar.bz2
g-cran-01300a1b4aa52cd1e7be5df597f45a5df3c322d4.zip
Offset for PORTDIR setting line fixed.
-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 4e45abc..3ed5a65 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('='):]).strip()
+ portage_location=re.sub('\"(.*)\"','\1',line[line.find('=')+1:]).strip()
elif os.path.exists('/usr/portage'): #default location
portage_location='/usr/portage'
else: