rvanlaar/djangorecipe — Issue #37: Version svn path doesn't support spaces
Author: rvanlaar
Created: 2011-12-27 21:40:44+00:00
State: open
Labels: 0.20, Fix Released, Undecided

Version 0.20

Specifying a url or "trunk" as the version attribute of djangorecipe generates an svn command on line 251 of recipe.py:

cmd = 'svn co %s %s' % (svn_url, download_location)

If the project name / path contains any spaces, these do not get quoted or escaped, so the svn command sees the extra path parts as invalid command options. The fix is to quote the parameters, changing the line to:

cmd = 'svn co "%s" "%s"' % (svn_url, download_location)