Line 3
Link Here
|
3 |
# $Header: /var/www/www.gentoo.org/raw_cvs/gentoo/src/catalyst/modules/catalyst_support.py,v 1.26 2004/07/12 14:37:45 zhen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.26 2004/07/12 14:37:45 zhen Exp $ |
4 |
-- |
|
|
Line 5
Link Here
|
5 |
import sys,string,os,types |
5 |
import sys,string,os,types,re |
6 |
-- |
|
|
Line 202
Link Here
|
|
|
202 |
def pathcompare(path1,path2): |
203 |
# Change double slashes to slash |
204 |
re.sub("\/\/","\/",path1) |
205 |
re.sub("\/\/","\/",path2) |
206 |
# Removing ending slash |
207 |
re.sub("\/$","",path1) |
208 |
re.sub("\/$","",path2) |
209 |
|
210 |
if path1 == path2: |
211 |
return 1 |
212 |
return 0 |
213 |
|
Line 211
Link Here
|
211 |
if path == mysplit[1]: |
223 |
if pathcompare(path,mysplit[1]): |
212 |
-- |
|
|