# HG changeset patch # User haftmann # Date 1128429426 -7200 # Node ID 2cc8429943f245a675c7b71a27aa2be5277a1638 # Parent a0745bc36660280cdbe1dc612f85216e89afe1cf better error handling diff -r a0745bc36660 -r 2cc8429943f2 Admin/website/build/pypager.py --- a/Admin/website/build/pypager.py Tue Oct 04 11:15:09 2005 +0200 +++ b/Admin/website/build/pypager.py Tue Oct 04 14:37:06 2005 +0200 @@ -490,8 +490,13 @@ ostream = sys.stdout # process file - transformer = TransformerHandler(ostream, outputEncoding, options.dtd, func) - parseWithER(istream, transformer) + try: + transformer = TransformerHandler(ostream, outputEncoding, options.dtd, func) + parseWithER(istream, transformer) + except Exception: + if dst is not None: + os.unlink(dst) + raise # close handles ostream.close() diff -r a0745bc36660 -r 2cc8429943f2 Admin/website/build/set_perm.bash --- a/Admin/website/build/set_perm.bash Tue Oct 04 11:15:09 2005 +0200 +++ b/Admin/website/build/set_perm.bash Tue Oct 04 14:37:06 2005 +0200 @@ -20,7 +20,7 @@ else if [ -x "$file" ] then - chmod "$LOCAL_UMASK_FILE",u+x,g+x,o+x "$file" + chmod "$LOCAL_UMASK_FILE",u+x,g+x "$file" else chmod "$LOCAL_UMASK_FILE" "$file" fi