← Back to team overview

bzr-packagers team mailing list archive

Re: Help with fixing buildout errors

 

Ian Clatworthy пишет:
Sidnei,

When I try to build 2.2 after building 2.1 on desolution, I get a weird
buildout error something like ...

Uninstalling qbzr.
Runing unistall recipe.
qbzr: Abort uninstalling "bzr-2.1" (...) ...
"""
modified:
  po/qbzr-en.po
"""
While
  Installing.
  Uninstalling qbzr.
Error: Abort uninstalling, because of pending local changes.


This only happen if I try building 2.2 using Python 2.5 (because 2.1 was
built using 2.5 I assume).

How do I fix this? How do I prevent it from happening in the future?
(I'm hoping there's some magic buildout setting that makes this issue go
away?)

po/qbzr-en.po is the auto-generated file and it regenerated every time you run

python setup.py build_mo -f

in the QBzr tree.

If I run this command in my windows shell with GNU gettext installed from http://gnuwin32.sf.net I've got a clean build every time: the file is re-generated, but its content has not changed.

I can't say why your gettext version works differently here. Apparently it put something like current timestamp or something similar, although I think I've used right command-line options to avoid this. Could it be line-endings issue? If you're working on Cygwin, and use their native gettext package it's possible that qbzr-en.po just change all line-endings from CRLF to LF. Is is my best guess. Can you check it?

It will be really nice if bzr would provide proper line-endings support in first place. Is it possible?

If line-endings in bzr is still below reasonable acceptation then I can add special action to convert line-endings of qbzr-en.po to LF only.

Alexander



References