diff options
author | 2010-07-08 22:45:43 +0200 | |
---|---|---|
committer | 2010-07-08 22:48:36 +0200 | |
commit | e62d6b0fcf4f15a5fe79b9c422f89b283b3103fb (patch) | |
tree | 4fbcce6c9fdfcbce8a11ef285133e4673c24dd8d /g_cran | |
parent | Hopefully finally fix guessing PORTDIR (diff) | |
download | g-cran-e62d6b0fcf4f15a5fe79b9c422f89b283b3103fb.tar.gz g-cran-e62d6b0fcf4f15a5fe79b9c422f89b283b3103fb.tar.bz2 g-cran-e62d6b0fcf4f15a5fe79b9c422f89b283b3103fb.zip |
Argh, even more PORTDIR guessing fixes
Diffstat (limited to 'g_cran')
-rw-r--r-- | g_cran/cran_read.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g_cran/cran_read.py b/g_cran/cran_read.py index 1b0eeb8..821b68f 100644 --- a/g_cran/cran_read.py +++ b/g_cran/cran_read.py @@ -17,9 +17,9 @@ def portage_dir(): elif os.path.exists('/etc/make.conf'): #portage stores portage location here conffile=open('/etc/make.conf') for line in conffile: #find PORTDIR="blabla" line - find_portdir=re.match('\s*PORTDIR\s*=\s*"?(.*)"?\s*',line) + find_portdir=re.match('\\s*PORTDIR\\s*=\\s*("?)(.*)"?\\1\\s*',line) if find_portdir: - portage_location=find_portdir.group(1).strip() + portage_location=find_portdir.group(2).strip() break else: portage_location='/usr/portage' |