Bazaar Export Command Not Handling Long Path Names

Guido Ostkamp bazaar at ostkamp.fastmail.fm
Wed May 21 23:19:48 BST 2008


On Wed, 21 May 2008, Talbert, Phil W wrote:

> We are seeing differing results Python 2.4 running on Linux does not
> seem to have the 100 character limit and Python 2.5 does. So yes I agree
> Bazaar should work out of the box with long path names but there is a
> problem somewhere and it is not consistent. I also noted that the
> Tarfile.py code for 2.4 and 2.5 is much different. It does however look
> like both have posix set to False so this just deepens the mystery as to
> why some platforms are having trouble with some versions. We want to use
> the 2.5.1 version of Python.

please try to execute the following test:

$ touch This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_

$ python
Python 2.5.1 (r251:54863, Aug 25 2007, 13:03:11)
[GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tarfile
>>> ball = tarfile.open("foobar.tar", 'w:')
>>> ball.add("This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_")
>>> ball.close()
>>>

$ tar tvf foobar.tar
-rw-r--r-- ostkamp/users     0 2008-05-21 23:54 This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_This_is_a_very_long_Filename_

As you can see, there is no problem in my case. Please verify that you are 
really using python 2.5.1 in the output you get. There are no warnings in 
the python part.

If just the last step 'tar tvf ...' fails, you may have a broken tar on 
your system.

Regards

Guido



More information about the bazaar mailing list