ERROR: exceptions.OSError: [Errno 22]

John Arbash Meinel john at arbash-meinel.com
Tue Aug 1 14:23:24 BST 2006


Martin Pool wrote:

...

> Hi Sam,
> 
> I think the file has probably changed from being a symlink to a normal
> file, perhaps because of a package upgrade, and you are encountering
> https://launchpad.net/products/bzr/+bug/3720
> 
> Until that is fixed what I suggest you do is
> 
>   mv printcap printcap.saved
>   bzr rm printcap
>   bzr commit -m 'remove printcap'
>   mv printcap.saved printcap
>   bzr add printcap
>   bzr commit -m 'updated printcap'
> 

Actually, 0.8.2 and bzr.dev both support having a file change without a
commit. They just don't support having a file-id change type.

So just doing:

% bzr rm printcap
% bzr add printcap
% bzr commit -m "printcap became a file"

I did a test of this with both, and they both passed.
bzr diff does:
=== removed symlink 'lnk'
=== target was 'foo'
=== added file 'lnk'
--- /dev/null
+++ lnk
@@ -0,0 +1,1 @@
+foo

John
=:->


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


More information about the bazaar mailing list