Filenames with a colon cause crash
Positron bombs out when trying to sync a filename with a colon in it.
Here's the output:
[tbone@hermes tbone]$ positron sync
Synchronizing Neuros music database.
Checking for new music... Copying 1549 new tracks.
Art Of Noise - 12 - Pause.mp3...
Art Of Noise - 13 - Out of this World [Version 138].mp3...
Art Of Noise - 06 - Rapt In the Evening Air.mp3...
Art Of Noise - 01 - Il Pleure [At the End of the Century].mp3...
Art Of Noise - 11 - Approximate Mood Swing no 2.mp3...
Art Of Noise - 03 - Metaforce: The Size Of A Metaphor.mp3...
Traceback (most recent call last):
File "/usr/bin/positron", line 153, in ?
main(sys.argv)
File "/usr/bin/positron", line 138, in main
cmd.run(config, myNeuros, remaining[1:])
File "/usr/lib/python2.2/site-packages/positron/cmd_sync.py", line 128, in run
add_track(neuros, sourcename, targetname)
File "/usr/lib/python2.2/site-packages/positron/add_file.py", line 75, in
add_track
util.copy_file(sourcename, targetname)
File "/usr/lib/python2.2/site-packages/positron/util.py", line 41, in copy_file
dest = file(dest_filename, "wb")
IOError: invalid mode: wb