On 22.06.2013 17:46, Nico Kadel-Garcia wrote:
> There's also an issue with inconsistent use of ;/usr/local/bin/pyton,
> or "/usr/bin/env python", fo the svnpubsub *.py scripts:

That inconsistency is very intentional: some of the python files are
hook scripts, and those use the absolute path of the python interpreter
because hook scripts are typically executed with an empty environment,
and therefore you cannot assume that "#!/usr/bin/env python" will work.
> # Canonicalize path to python, correctly
> for name in tools/server-side/svnpubsub/*.py; do
>     sed -i 's|#!/usr/local/bin/python|#!/usr/bin/env python|g' $name
> done

The above will actually break the hook scripts. At best you can use
"#!/usr/bin/python" in those scripts.

-- Brane


-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. br...@wandisco.com

Reply via email to