Your message dated Wed, 06 Jun 2012 21:05:25 +0000
with message-id <[email protected]>
and subject line Bug#672722: fixed in reportbug 6.4
has caused the Debian Bug report #672722,
regarding reportbug: Please generate ben files with transition bugs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
672722: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672722
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: reportbug
Version: 6.3.1
Severity: wishlist
Tags: patch

Hi,

It would be much appreciated if reportbug could assist reporters by
generating "ben" files for transition bugs.  I have developed a
prototype patch that seems to work reasonable and that can be used as
a basis for this.

For testing, I have tried to use it to generate the current APT ben
file[1].  It can be done by following [2].

The generated files are only intended for the "common cases".  In
"rare cases", people may need to use some of the additional
functionality provided by ben (e.g. the "edos checks").
  I think it would be fine to as them to fill out the fields manaully
for now.

~Niels

[1] Generated result:

"""
Ben file:

title = "apt";
is_affected = .depends ~ /libapt-pkg4.10|libapt-inst1.2/ | .depends ~ "libept1" 
| .depends ~ /libapt-pkg4.12|libapt-inst1.5|libept1.4.12/;
is_good = .depends ~ /libapt-pkg4.12|libapt-inst1.5|libept1.4.12/;
is_bad = .depends ~ /libapt-pkg4.10|libapt-inst1.2/ | .depends ~ "libept1";

"""

[2]

"""

[...]

Choose the request type: 8
Please enter the name of the package: apt
[...]

To assist the release team, please fill in the following
information. You will be asked to provide package names of the library
package(s) that are the source of the transition. If more than one
library is changing the name, please use a space separated
list. Alternatively you can use a regex by enclosing the regex in
slashes ("/"). Please ensure that the "old" regex does not match the
"new" packages.

Please enter old binary package name of the library (or a regex matching 
it):/libapt-pkg4.10|libapt-inst1.2/ libept1
Please enter new binary package name of the library (or a regex matching 
it):/libapt-pkg4.12|libapt-inst1.5|libept1.4.12/

[...]

"""
>From 5ef9469591107370a8edf8efd955b04fcac34955 Mon Sep 17 00:00:00 2001
From: Niels Thykier <[email protected]>
Date: Sun, 13 May 2012 10:40:14 +0200
Subject: [PATCH] debbugs.py: Generate a ben file for transition bugs

Signed-off-by: Niels Thykier <[email protected]>
---
 reportbug/debbugs.py |   47 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 46 insertions(+), 1 deletion(-)

diff --git a/reportbug/debbugs.py b/reportbug/debbugs.py
index 659f7dc..81d752e 100644
--- a/reportbug/debbugs.py
+++ b/reportbug/debbugs.py
@@ -496,7 +496,52 @@ def handle_debian_release(package, bts, ui, fromaddr, timeout, online=True, http
         body    = "nmu %s_%s . %s . -m \"%s\"\n" % (package, version, archs or "ALL", reason)
     elif tag == 'transition':
         subject = 'transition: %s' % (package)
-        body    = '(please explain about the transition: impacted packages, reason, ...)\n'
+        body    = '(please explain about the transition: impacted packages, reason, ...\n' \
+                  ' for more info see: https://wiki.debian.org/Teams/ReleaseTeam/Transitions)\n'
+        affected = '<Fill out>'
+        good = '<Fill out>'
+        bad = '<Fill out>'
+
+        ui.long_message('To assist the release team, please fill in the following information. '
+                        'You will be asked to provide package names of the library package(s) '
+                        'that are the source of the transition.  If more than one library is '
+                        'changing the name, please use a space separated list.  Alternatively '
+                        'you can use a regex by enclosing the regex in slashes ("/").  Please '
+                        'ensure that the "old" regex does not match the "new" packages.')
+
+        prompt = 'Please enter old binary package name of the library (or a regex matching it):'
+        tfrom = ui.get_string(prompt)
+        if tfrom:
+            prompt = 'Please enter new binary package name of the library (or a regex matching it):'
+            tto = ui.get_string(prompt)
+        else:
+            tto = None
+        if tfrom and tto:
+            # Compute a ben file from this.
+
+            # (quote if x does not start with a "/")
+            quote=lambda x: (x[0] == '/' and x) or '"%s"' % x
+
+            listbad = [quote(x) for x in tfrom.strip().split()]
+            listgood = [quote(x) for x in tto.strip().split()]
+
+            j = " | .depends ~ ".join
+            affected = ".depends ~ " + j(listbad + listgood)
+            good = ".depends ~ " + j(listgood)
+            bad = ".depends ~ " + j(listbad)
+
+
+        body += textwrap.dedent(u"""\
+
+               Ben file:
+
+               title = "%s";
+               is_affected = %s;
+               is_good = %s;
+               is_bad = %s;
+
+               """ % (package, affected, good, bad))
+
     elif tag == 'britney':
         subject = subject_britney
         body = ''
-- 
1.7.10


--- End Message ---
--- Begin Message ---
Source: reportbug
Source-Version: 6.4

We believe that the bug you reported is fixed in the latest version of
reportbug, which is due to be installed in the Debian FTP archive:

python-reportbug_6.4_all.deb
  to main/r/reportbug/python-reportbug_6.4_all.deb
reportbug_6.4.dsc
  to main/r/reportbug/reportbug_6.4.dsc
reportbug_6.4.tar.bz2
  to main/r/reportbug/reportbug_6.4.tar.bz2
reportbug_6.4_all.deb
  to main/r/reportbug/reportbug_6.4_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <[email protected]> (supplier of updated reportbug package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 06 Jun 2012 22:10:17 +0200
Source: reportbug
Binary: reportbug python-reportbug
Architecture: source all
Version: 6.4
Distribution: unstable
Urgency: low
Maintainer: Reportbug Maintainers <[email protected]>
Changed-By: Sandro Tosi <[email protected]>
Description: 
 python-reportbug - Python modules for interacting with bug tracking systems
 reportbug  - reports bugs in the Debian distribution
Closes: 650651 654165 657616 657753 658748 658795 661221 666469 667543 669249 
672722 673204
Changes: 
 reportbug (6.4) unstable; urgency=low
 .
   * reportbug/checkversions.py
     - match version on the precise architecture, not just check string
       inclusiong; thanks to Nelson de Oliveira for the report; Closes: #650651
     - include arch:all in package versions lookup; thanks to Hilmar Preuße for
       the report; Closes: #673204
   * bin/reportbug
     - clarify the menu title when presenting more packages; thanks to Alois
       Mahdal for the report; Closes: #654165
   * reportbug/ui/{text, urwid}_ui.py
     - sort bug numerically; thanks to Matthias Urlichs for the report;
       Closes: #657616
   * reportbug/debbugs.py
     - initialize varibles needed to handle ftp.debian.org section change
       requests, so reportbug won't crash if proper values (for section and
       priority) is not found; thanks to James McCoy for the report;
       Closes: #658748
     - support release team generating "ben" files when requesting a transition;
       thanks to Niels Thykier for the report and patch; Closes: #672722
   * reportbug/utils.py
     - correctly report the installation status for each dependency packages, 
not
       just the last status applied to each pkgs; thanks to Piotr Engelking for
       the report; Closes: #657753
     - Fix crash when using claws-mail as a mailer; thanks to Valentin Lorentz
       for the report and (partial) patch: Closes: #667543
   * reportbug/utils.py, debian/control
     - updated claws-mail command to use the new cli switch to compose a mail
       from a file (adding a versioned depends); thanks to David Paleino for the
       report; Closes: #661221
   * debian/control
     - added python-mock to b-d-i, needed for the test suite
     - bump Standards-Version to 3.9.3 (no changes needed)
   * reportbug/{debbugs, utils}.py
     - report foreign architectures information (if m-a); thanks to Cyril
       Brulebois for the report; Closes: #658795
   * bin/reportbug, man/reportbug.*
     - fix several typos; thanks to Simon Kainz for the report and patch;
       Closes: #669249
   * bin/reportbug, reportbug/utils.py
     - initial support for multi-arch: keep arch-qualifier and remove it just
       before preparing the report body; Closes: #666469
   * Extend my copyright years to include 2012
Checksums-Sha1: 
 f3bf383b9aff2f563e1eeeefc11b7fb59c04d45b 1194 reportbug_6.4.dsc
 57799db817cfa8a6eade8f3a0a6b52975e9decac 179157 reportbug_6.4.tar.bz2
 10bee650a1370291d35cfc0be032a305d120863e 125724 reportbug_6.4_all.deb
 975a2223a0cae73420265096ef4bfd4d394bca63 136032 python-reportbug_6.4_all.deb
Checksums-Sha256: 
 56163049045c87a3fb213f0ff774e02d78f108c70b6748b218a69d59dfd669eb 1194 
reportbug_6.4.dsc
 0deb65c1a826ee1f05e4baedd177b0b1dcdff8873030f64d91384719ac295a1c 179157 
reportbug_6.4.tar.bz2
 d7f5f078f975eba802a78c5573db7a9a86ebda31d8bb92dc7702dc719c8bb69f 125724 
reportbug_6.4_all.deb
 d7bc8ebe705aa48974a90861ad89166c2ee532127a60235350662a2a33346e1a 136032 
python-reportbug_6.4_all.deb
Files: 
 9e985884447ad31d5bef2cbd9d574b45 1194 utils standard reportbug_6.4.dsc
 241fec9320eb729d3700997b3899a881 179157 utils standard reportbug_6.4.tar.bz2
 c0c9c0d83f72a41c565b157159d4ee15 125724 utils standard reportbug_6.4_all.deb
 bd51b326c425d3a603e41e94d5cf6b80 136032 python standard 
python-reportbug_6.4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/PvoEACgkQAukwV0RN2VAfHwCgkHiD2g/wu6f+SAvnU/dFyHf4
DtoAn164xoq5/xfE5wSvdi5EZd1Qw9GA
=s/UJ
-----END PGP SIGNATURE-----



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

Reply via email to