[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r9622 - trunk/subversion/po

From: <kfogel_at_collab.net>
Date: 2004-05-07 03:26:29 CEST

Branko Čibej <brane@xbc.nu> writes:
> Big surprise here, you're ignoring the exit code from verify-po.py...

Sorry -- I assumed that when a subcommand (subprocess) exited with
non-success, the script would too. On reflection, I don't know why I
thought that. Too much 'make', maybe?

It works now, the new hook script looks like this:

   #!/bin/sh
   
   LANG=en_US; export LANG
   
   REPOS=${1}
   TXN=${2}
   
   LOG=`/usr/local/bin/svnlook log ${REPOS} -t ${TXN}`
   echo "${LOG}" | grep "[a-zA-Z0-9]" > /dev/null || exit 1
   
   # Check that .po files are in UTF-8 encoding.
   if ! /mysterious/super/secret/path/to/verify-po.py ${REPOS} ${TXN}; then
     exit 1
   fi
   
   exit 0

Thanks for the quick diagnosis.

By the way, is there any reason not to put "#!/usr/bin/env python" at
the top of verify-po.py?

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 7 04:40:58 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.