The branch, master, has been updated. - Log -----------------------------------------------------------------
commit bd2468c341fc0c58e51475e3e3c710f593a459c6 Author: Kornel Benko <[email protected]> Date: Thu Jan 3 13:02:34 2013 +0100 Use program suffix to address lyx-executable, according to suffix of tex2lyx. Still the is error in tex2lyx, which searches for invalid suffix to find the correct lyx executable. diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py index b1383cd..39e91f1 100755 --- a/src/tex2lyx/test/runtests.py +++ b/src/tex2lyx/test/runtests.py @@ -43,7 +43,12 @@ def main(argv): else: error(usage(argv[0])) - lyx = os.path.join(os.path.dirname(tex2lyx), "lyx") + suffixre = re.search(r'\d+\.\d+$', tex2lyx) + if suffixre: + suffix = suffixre.group() + else: + suffix = "" + lyx = os.path.join(os.path.dirname(tex2lyx), "lyx" + suffix) inputdir = os.path.dirname(argv[0]) if len(argv) >= 4+skipcount: outputdir = sys.argv[3+skipcount] @@ -103,7 +108,6 @@ def main(argv): # e.g. '#LyX file created ...' # '\lyxformat ...' if lines1[2:] != lines2[2:]: - sys.stdout.writelines("lines1 != lines2") diff = difflib.unified_diff(lines1, lines2, lyxfile1, lyxfile2, t1, t2) sys.stdout.writelines(diff) errors.append(f) ----------------------------------------------------------------------- Summary of changes: src/tex2lyx/test/runtests.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) hooks/post-receive -- The LyX Source Repository
