[MERGE] make plugins use the right suffixes

John Arbash Meinel john at arbash-meinel.com
Fri Jul 14 21:40:58 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert noticed that we would allow loading '.pyo' files even if we
weren't running python -O. (it turns out python won't load .pyc if
running -O, and won't load .pyo if running without it.)

The attached bundle fixes it to use the right suffixes.

I don't have any tests for it, because it would involve spawning bzr as
a separate process, and running it with either 'python -O' or 'python'.
Which is possible to do, but doesn't seem worthy for this change.

(It means we can't use any of the builtin stuff, we have to use Popen
directly. and make sure BZR_PLUGIN_PATH is correct, etc)

If we don't want to merge this until the tests are written, I don't
think it is important enough to block 0.9.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEuAFaJdeBCYSNAAMRAsN3AJsE0qOIK0AGyaY9a7NYyJM1fKrRqwCbBK3/
TErewo/Kl1tmO3kjWBHfHdg=
=LuHz
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-51810.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060714/3efb1fa3/attachment.bin 


More information about the bazaar mailing list