[Reportbug-maint] Bug#491219: [PATCH] python-debianbts takes precedance over /usr/share/reportbug/reportbuglib/debianbts.py

Alban Browaeys prahal at yahoo.com
Thu Jul 17 17:28:47 UTC 2008


Package: reportbug
Version: 3.42
Severity: important
Tags: patch

Hi. I am new to python and the debian policy regarding how to handle
them though I found a workaround to get debreaper working again. 
It was failing
Traceback (most recent call last):
  File "/usr/share/debreaper/debreaper", line 70, in <module>
    report = generate_report (status[1], status[0], status[2], status[3], path, gdbout)
  File "/usr/share/debreaper/bug_iface.py", line 27, in generate_report
    return reportbug.generate_blank_report (package, pkgversion, 'important', None, depinfo, '', path, body="*** Please describe what you were doing when the application crashed ***\n\n"+gdbout)
  File "/usr/share/reportbug/reportbuglib/reportbug.py", line 721, in generate_blank_report
    if debianbts.SYSTEMS[system].has_key('namefmt'):
AttributeError: 'module' object has no attribute 'SYSTEMS'

due to python-debianbts (dependency of reportbug-ng) tyaking precedance in the import search path in /usr/share/reportbug/reportbuglib/reportbug.py

This patch works around it by adding /usr/share/reportbug/reportbuglib first in the import search path.

Best regards
Alban
	  

-- Package-specific info:
** /home/prahal/.reportbugrc:
reportbug_version "3.29.5"
mode standard
realname "Alban Browaeys"
email "prahal at yahoo.com"
no-cc
header "X-Debbugs-CC: prahal at yahoo.com"

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

Kernel: Linux 2.6.25-rc7-00025-gacaef06-dirty (SMP w/1 CPU core)
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.14+b1  Advanced front-end for dpkg
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-central                0.6.8      register and build utility for Pyt

reportbug recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reportbugpy_workaroundpython-debianbtsconflict.diff
Type: text/x-java
Size: 256 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20080717/3ca600f4/attachment.java 


More information about the Reportbug-maint mailing list