Hi Sebastien,

On Tue, Aug 2, 2011 at 10:41, Sebastien Douche <[email protected]> wrote:

>
> ----------
> list = run('ls -1 %s' % path).split('\n')
> for repos in list:
>     url = os.path.join(path, repos)
>     print "url: %s" % url
>     with cd(url):
>         run('ls')
> ----------
>

I could reproduce the problem.

Looks like there is a stray '\r' at the end of each of your "url", which
causes mayhem.

It's fixed by using str.split('\r\n'), or (probably better)
str.splitlines().

-- 
Ronan Amicel
http://topixtream.com/
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to