pack.py converts space to underscore

Bug #331724 reported by Patrick Brueckner
4
Affects Status Importance Assigned to Milestone
EOEC
Fix Committed
Medium
Daniel Darabos

Bug Description

paddy@patrickbrueckner:~/htdocs/projects$ python eoec/create.py --vendor "Patrick Brückner" "bwgrkl to unicode"
paddy@patrickbrueckner:~/htdocs/projects$ python eoec/pack.py -D bwgrkl\ to\ unicode/
Traceback (most recent call last):
  File "eoec/pack.py", line 82, in <module>
    main()
  File "eoec/pack.py", line 79, in main
    pack( project, outpath, debug )
  File "eoec/pack.py", line 24, in pack
    z = zipfile.ZipFile( zipname, 'w', zipfile.ZIP_DEFLATED )
  File "/usr/lib/python2.5/zipfile.py", line 339, in __init__
    self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: '/home/paddy/htdocs/projects/bwgrkl_to_unicode/_Debug.oxt'

since the folder is known as bwgrkl to unicode and not bwgrkl_to_unicode zipping must fail.

im running
Ubuntu 8.10 on 2.6.27-11-generic with python version 2.5.2

Revision history for this message
Patrick Brueckner (madmuffin) wrote :

forgot to mention: i am using EOEC r28 from bzr.

Revision history for this message
Daniel Darabos (darabos-daniel) wrote :

Hi! EOEC has to convert spaces to underscores, because OpenOffice.org does not handle OXT files with special characters (like space). The problem is instead the slash at the end of your command line. Try:

python eoec/pack.py -D bwgrkl\ to\ unicode

(the last slash is removed)

I think this will work, but there is no reason not to handle this sanely, so I will add a fix. Thanks for bringing this to my attention.

Revision history for this message
Daniel Darabos (darabos-daniel) wrote :

Trailing slash is now removed (r29). This should make the usage more convenient in non-Windows shells.

Changed in eoec:
assignee: nobody → darabos-daniel
importance: Undecided → Medium
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.