diff options
Diffstat (limited to 'test/Repository/LIBPATH.py')
-rw-r--r-- | test/Repository/LIBPATH.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Repository/LIBPATH.py b/test/Repository/LIBPATH.py index 4b249e5..8f0a12f 100644 --- a/test/Repository/LIBPATH.py +++ b/test/Repository/LIBPATH.py @@ -50,10 +50,10 @@ def write_LIBDIRFLAGS(env, target, source): suf = env.subst('$LIBDIRSUFFIX') f = open(str(target[0]), 'wb') for arg in string.split(env.subst('$_LIBDIRFLAGS', target=target)): - if arg[:len(pre)] == pre: - arg = arg[len(pre):] - if arg[-len(suf):] == suf: - arg = arg[:-len(pre)] + if arg[:len(pre)] == pre: + arg = arg[len(pre):] + if arg[-len(suf):] == suf: + arg = arg[:-len(pre)] f.write(arg + '\n') f.close() return 0 |