bzr 0.7 release candidate 2

John A Meinel john at arbash-meinel.com
Wed Jan 18 15:25:38 GMT 2006


John A Meinel wrote:
> Martin Pool wrote:

...

> I tried to run 'bzr selftest', and I got 6 'PermissionDenied' exceptions
> from the SFTP transport test. I'm trying to look through them now.
> 
> John
> =:->
> 

As I investigated further, I think this is mostly because I installed
the latest development version of paramiko, which seems to have some bugs.

I know Robey switch to checking 'if attr.st_mode != 0' whereas before he
would 'if hasattr(attr, 'st_mode'):'

There are a few comments about paramiko, first, in your last commit, you
have:

=== modified file 'paramiko/util.py'
--- paramiko/util.py
+++ paramiko/util.py
@@ -294,7 +294,7 @@
     """
     matches = [x for x in config if fnmatch.fnmatch(hostname, x['host'])]
     # sort in order of shortest match (usually '*') to longest
-    matches.sort(key=lambda x: len(x['host']))
+    matches.sort(lambda x,y: cmp(len(x['host']), len(x['host'])))
     ret = {}
     for m in matches:
         ret.update(m)

I think you wanted this to be
matches.sort(lambda x,y: cmp(len(x['host']), len(y['host'])))
                                                ^^^
Otherwise it won't do any sorting.

I think the bug I'm encountering is that somehow FLAG_PERMISSIONS is
being set, but st_mode is still 0. I don't know how this is happening,
but something is doing a 'os.chmod(filename, 0)'

Anyway, if you use paramiko-1.5.2 everything is fine. It is only after
  270 Robey Pointer     2006-01-14
      fix a bunch of pychecker warnings, some of which were actual (but
unlikely) bugs

That I have any problems.

So bzr-0.7rc2 seems fine, just don't use the latest development paramiko

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060118/4db992ac/attachment.pgp 


More information about the bazaar mailing list