On Thu, Jul 17, 2008 at 10:39:37AM +0200, Lars Kruse wrote:
>
> this one is (embarrassingly) trivial:
> replace "bzw" in translate/storage/versioncontrol/bzr.py (line 59) with "bzr"
> 
> (I just uploaded the fix in r7782)
>

Hi. I'm the sysadmin for pootle.metalab.unc.edu. :)

Is that (r7782) stable enough for me to push an update? What all do I
need to update?
 
> > Update:
> > 
> > [BZR] cat failed for
> > '/root/stable/messages/eu/LC_MESSAGES/mailman.po': bzr: ERROR: Not a
> > branch: "/root/stable/messages/.bzr/branch/".
> 
> here I can't see the problem immediately.
> Please try to run the following in a shell on the server:
>  bzr cat /root/stable/messages/eu/LC_MESSAGES/mailman.po
> and
>  python -m translate.storage.versioncontrol \
>   /root/stable/messages/eu/LC_MESSAGES/mailman.po
>

""

[EMAIL PROTECTED]:~# bzr cat /root/stable/messages/eu/LC_MESSAGES/mailman.po
bzr: ERROR: Not a branch: "/root/stable/messages/.bzr/branch/".
[EMAIL PROTECTED]:~# sudo -u pootle bzr cat 
/root/stable/messages/eu/LC_MESSAGES/mailman.po
No handlers could be found for logger "bzr"
bzr: ERROR: Not a branch: "/root/stable/messages/.bzr/branch/".
[EMAIL PROTECTED]:~# ls -alh !$
ls -alh /root/stable/messages/eu/LC_MESSAGES/mailman.po
-rw-rwSr-- 1 root pootle 380K 2008-07-09 16:45 
/root/stable/messages/eu/LC_MESSAGES/mailman.po

""

Calling from the web, it should be running as the 'pootle' user, so...

""

[EMAIL PROTECTED]:~# python -m translate.storage.versioncontrol 
/root/stable/messages/eu/LC_MESSAGES/mailman.po
Traceback (most recent call last):
  File "/usr/lib/python2.5/runpy.py", line 95, in run_module
    filename, loader, alter_sys)
  File "/usr/lib/python2.5/runpy.py", line 52, in _run_module_code
    mod_name, mod_fname, mod_loader)
  File "/usr/lib/python2.5/runpy.py", line 32, in _run_code
    exec code in run_globals
  File 
"/usr/lib/python2.5/site-packages/translate/storage/versioncontrol/__init__.py",
 line 328, in <module>
    contents = getcleanfile(filename)
  File 
"/usr/lib/python2.5/site-packages/translate/storage/versioncontrol/__init__.py",
 line 289, in getcleanfile
    return get_versioned_object(filename).getcleanfile(revision)
  File 
"/usr/lib/python2.5/site-packages/translate/storage/versioncontrol/bzr.py", 
line 76, in getcleanfile
    % (self.location_abs, error))
IOError: [BZR] cat failed for 
'/root/stable/messages/eu/LC_MESSAGES/mailman.po': bzr: ERROR: Not a branch: 
"/root/stable/messages/.bzr/branch/".

""

Let me know what else I can try to get this sorted out. I haven't
updated anything yet. Waiting on feedback before I update this pootle
instance.

 
> both commands should output the content of the respective file from the
> repository.
> Maybe you - as a bzr user - can suggest a fix, if one of these commands does
> not work on your system?
> (they are working in my testing setup)

Just to explain briefly... As root and in root's ~ I did a 

  branch lp:mailman/stable mailman

followed by a...

  bzr checkout mailman/ stable

to get a working copy. And then I went to /var/lib/pootle and added a
symlink so that /var/lib/pootle/mailman is a pointer to
/root/stable/messages. I hope that explained what I've done in
suffieint detail. Your help in sorting thsi out is most appreciated.

-- 
Cristóbal Palmer
ibiblio.org systems administrator

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to