diff options
author | Auke Booij (tulcod) <auke@tulcod.com> | 2010-07-06 00:20:59 +0200 |
---|---|---|
committer | Auke Booij (tulcod) <auke@tulcod.com> | 2010-07-06 00:20:59 +0200 |
commit | 01300a1b4aa52cd1e7be5df597f45a5df3c322d4 (patch) | |
tree | 731626ad5d489a88efd53dd9687c8374f11b4b90 | |
parent | When a dependency package name can be found in portage, then it's used (diff) | |
download | g-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.py | 2 |
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: |