• Bug#251643: debconf-updatepo: clobbers my comment block in templates.po

    From Branden Robinson@1:229/2 to Denis Barbier on Fri Aug 20 07:30:08 2004
    From: [email protected]

    --YD3LsXFS42OYHhNZ
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: inline
    Content-Transfer-Encoding: quoted-printable

    On Thu, Jul 29, 2004 at 09:44:12AM +0200, Denis Barbier wrote:
    On Wed, Jul 28, 2004 at 11:54:19PM +0200, Jeroen van Wolffelaar wrote:
    On Fri, Jul 02, 2004 at 12:58:38AM +0200, Denis Barbier wrote:
    Managing comment headers of PO files is gettext's job, po-debconf won't interfere. Can this bug be closed (or reassigned to gettext)?.

    It still kills my customized contents of "Project-Id-Version" and "Report-Msgid-Bugs-To", which it really shouldn't.

    This can be set by xgettext --msgid-bugs-address, I need to check
    in which gettext version it has been introduced and add support
    into intltool-debian.
    Should DEBEMAIL variable be used, or gets address from the changelog?

    So, this bug shouldn't be closed now. Who's fault this is (gettext or po-debconf) is for you to decide, of course.

    By the way, on first generation, or even every time, it'd make sense to
    set those to the values from the first line of changelog and the maintainer, respectively. That's exactly what I'm doing now manually in debian/rules. Other fields should still be left alone, as Branden
    reported.

    This is a gettext issue, there is nothing I can do except reassign this bugreport, should do it soon.
    Anyway, if I were the gettext maintainer, I would tell you that if you
    want to change other fields, you are surely doing something wrong.

    You may be interested in my modified version of debconf-updatepo, which
    does what I need.

    I've attached the script and a diff.

    --
    G. Branden Robinson | You live and learn.
    Debian GNU/Linux | Or you don't live long. [email protected] | -- Robert Heinlein http://people.debian.org/~branden/ |

    --YD3LsXFS42OYHhNZ
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: attachment; filename�bconf-updatepo

    #!/bin/sh

    # This is a replacement for the real debconf-updatepo, which unfortunately
    # mangles our debian/po/templates.pot file beyond recognition.

    # Copyright (C) 2002-2004 Denis Barbier <[email protected]>
    #
    # This program is free software; you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or (at
    # your option) any later version.
    #
    # This program is distributed in the hope that it will be useful, but
    # WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A