Package: reportbug
Version: 4.1
Severity: normal

Hi

The script that I use to sent debconf translation to the BTS fails with
reportbug 4.1. I sent #522988 with the same script (reportbug-4.0).


florentin % sh -x bug-po-debconf clamav fr.po.bz2
+ ARGS=2
+ NAME=clamav
+ PO=fr.po.bz2
+ '[' 2 -ne 2 ']'
+ '[' clamav = ' ']'
+ '[' fr.po.bz2 = ' ']'
+ '[' '!' -e fr.po.bz2 ']'
+ reportbug --attach=fr.po.bz2 --offline
--include=/home/florentin/debian/material/po-debconf.txt -s 'clamav:
French debconf templates translation update' --severity=wishlist
--tag=patch --tag=l10n --no-config-files --package-version=N/A clamav
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 1831, in <module>
      main()
        File "/usr/bin/reportbug", line 831, in main
            lib_package = __import__('reportbug.ui', fromlist=[iface])
            UnboundLocalError: local variable 'iface' referenced before
            assignment

I attach the script.

Florentin Duneau

-- Package-specific info:
** Environment settings:
EDITOR="vim"
DEBEMAIL="[email protected]"

** /home/florentin/.reportbugrc:
editor "vim"
email "[email protected]"
realname "Florentin Duneau"
submit
query-bts
config-files
compress
smtphost localhost
verify

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages reportbug depends on:
ii  apt                           0.7.21     Advanced front-end for dpkg
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-reportbug              4.1        Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils                 <none>     (no description available)
pn  debsums                       <none>     (no description available)
pn  dlocate                       <none>     (no description available)
ii  file                          5.00-1     Determines file type using "magic"
ii  gnupg                         1.4.9-4    GNU privacy guard - a free PGP rep
ii  postfix [mail-transport-agent 2.5.5-1.1  High-performance mail transport ag
pn  python-gnome2-extras          <none>     (no description available)
ii  python-gtk2                   2.14.1-2   Python bindings for the GTK+ widge
pn  python-urwid                  <none>     (no description available)
pn  python-vte                    <none>     (no description available)

-- no debconf information
#!/bin/sh

ARGS=2;
NAME=$1
PO=$2

usage () {
    echo "Usage: $(basename $0) NAME FILE"
}

# check options

if [ $# -ne $ARGS ]; then
    echo "Error: $(basename $0) takes two arguments."
    usage
    exit 1
fi

if [ $NAME = '' ]; then
    echo "Error: You must debconf templates name."
    usage
    exit 1;
fi

if [ $PO = '' ]; then
    echo "Error: You must specify a po file."
    usage
    exit 1;
elif [ ! -e $PO ]; then
    echo "Error: Unable to find the file $PO."
    exit 1;
fi

reportbug  --attach=$PO --offline \
--include="${HOME}/debian/material/po-debconf.txt" \
-s "$NAME: French debconf templates translation update" \
--severity=wishlist --tag=patch --tag=l10n --no-config-files \
--package-version="N/A" $NAME

_______________________________________________
Reportbug-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/reportbug-maint

Reply via email to