[mythtv] [mythtv-commits] mythtv commit: r17032 by nigel

buzz davidbuzz at gmail.com
Sun Apr 13 08:38:38 UTC 2008


NIgel,
FYI only - File::Copy is used because of the following:
1) platform independant well tested code
2) works even when msys (and thus mingw are not installed yet)
3) faster than doing a system call out to dos or msys.

more ideas:
As for the error you are getting, I might have fixed this more globablly by
either:
1) making perl2unix backslash special characters like space, questionmark,
etc
2) making perl2unix detect special characters and just put single quotes
around the full filename/expression.

Buzz.

On Sun, Apr 13, 2008 at 5:04 PM, <mythtv at cvs.mythtv.org> wrote:

>      Author: nigel
>        Date: 2008-04-13 07:04:08 +0000 (Sun, 13 Apr 2008)
> New Revision: 17032
>   Changeset: http://cvs.mythtv.org/trac/changeset/17032
>
> Modified:
>
>   trunk/mythtv/contrib/Win32/build/win32-packager.pl
>
> Log:
>
> Cope with spaces in copy pathnames. Prevent errors like:
> {{{
> file exists: c:/Program Files/MySql/MySql Server 5.0/bin/libmySQL.dll
> no parameters defined, so applying effect(copy) as (2nd src parameter =>
> 1st src parameter)!
> copyng file (c:/Program Files/MySql/MySql Server 5.0/bin/libmySQL.dll =>
> C:/MinGW/bin/libmySQL.dll)
> perl2unix: c:/Program Files/MySql/MySql Server 5.0/bin/libmySQL.dll
> perl2unix: C:/MinGW/bin/libmySQL.dll
> shell:C:\MSys\1.0\bin\bah.exe -c "( export
> PATH=/bin:/mingw/bin:$PATH;touch --reference=/c/Program Files/MySQL/MySQL
> Server 5.0/bin/libmySQL.dll /C/MinGW/bin/libmySQL.dll) 2>&1 "
> touch: failed to get attributes of '/c/Program': No such file or directory
> }}}
> It would probably be tidier to remove File::Copy and just do system('cp
> -p'),
> but for now, I'll just add some quoting.
>
>
>
> _______________________________________________
> mythtv-commits mailing list
> mythtv-commits at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080413/ab063540/attachment.htm 


More information about the mythtv-dev mailing list