paramiko getting offset 0

Robert Collins robertc at robertcollins.net
Wed Aug 1 00:45:10 BST 2007


On Tue, 2007-07-31 at 17:37 -0500, John Arbash Meinel wrote:
> 
> I don't think we should specifically do that, but I know that at the
> moment, we
> use 'put_non_atomic' if we know that the file doesn't exist, and only
> use
> 'append' if we have already read it.

for kndx's perhaps, not so for knits IIRC.

> Maybe a 'file_not_empty' flag to append?

I think this makes sense.

> Having a .kndx file claim to be 0 length means that we corrupt it. So
> I would
> like to try to be cautious. 

Indeed :)

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070801/6cb136f2/attachment.pgp 


More information about the bazaar mailing list