emacsでreportbug用の文面を生成する。

blockdiagが1.1になって、OrderedDictが使われるようになったようです。この機能を使うためには、pypiに公開されている ordereddict が必要で、実際blockdiagでもこれを使っているので、blockdiagのパッケージの前に、ordereddictをITPする必要が出てきました。 1

で、いつものようにreportbugを使ってITPしようとしたところ、

(snip)
What sort of request is this? (If none of these things mean anything to you, or you are trying to report a bug in an existing package, please press Enter to exit reportbug.)

1 ITP  This is an `Intent To Package'. Please submit a package description along with copyright and URL in such a report.
2 O    The package has been `Orphaned'. It needs a new maintainer as soon as possible.
3 RFA  This is a `Request for Adoption'. Due to lack of time, resources, interest or something similar, the current maintainer is asking for someone else to maintain this package.
       They will maintain it in the meantime, but perhaps not in the best possible way. In short: the package needs a new maintainer.
4 RFH  This is a `Request For Help'. The current maintainer wants to continue to maintain this package, but they needs some help to do this, because their time is limited or the
       package is quite big and needs several maintainers.
5 RFP  This is a `Request For Package'. You have found an interesting piece of software and would like someone else to maintain it for Debian. Please submit a package description
       along with copyright and URL in such a report.

Choose the request type: 1
Please enter the proposed package name: python-ordereddict
Checking status database...
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2194, in <module>
    main()
  File "/usr/bin/reportbug", line 1077, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1672, in user_interface
    self.options.http_proxy)
  File "/usr/bin/reportbug", line 513, in special_prompts
    return pkgprompts(package, bts, ui, fromaddr, timeout, online, http_proxy)
  File "/usr/lib/pymodules/python2.7/reportbug/debbugs.py", line 575, in handle_wnpp
    package, '0', timeout, http_proxy=http_proxy)):
  File "/usr/lib/pymodules/python2.7/reportbug/checkversions.py", line 197, in check_available
    stuff = get_versions_available(package, timeout, dists, http_proxy, arch)
  File "/usr/lib/pymodules/python2.7/reportbug/checkversions.py", line 126, in get_versions_available
    dist = utils.SUITES2DISTS.get(l[2], '')
IndexError: list index out of range

のようにreportbugがコケてしまいます。困ったねと思って、 ドキュメント を読んでみたら、emacs用にdebian-bugコマンドがあることを知りました。インストールしていなかったので、まずは sudo apt-get install debian-el としてインストール。

んで、emacsを起動して、 M-x debian-bug-wnpp を実行すると、reportbugと同じようにいくつか質問され、下記の文面をsubmit@bugs.debian.orgに送信。

From: Kouhei Maeda <mkouhei@palmtb.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ITP: python-ordereddict -- recipe has big-oh performance
X-Debbugs-CC: Kouhei Maeda <mkouhei@palmtb.net>
Package: wnpp
Owner: Kouhei Maeda <mkouhei@palmtb.net>
Severity: wishlist


* Package name    : python-ordereddict
  Version         : 1.1
  Upstream Author : Raymond Hettinger
* URL or Web page : http://pypi.python.org/pypi/ordereddict
* License         : The MIT License
  Description     : recipe has big-oh performance
 collections.OrderedDict that works in Python 2.4-2.6. Drop-in
 substitute for Py2.7's new collections.OrderedDict. The recipe has
 big-oh performance that matches regular dictionaries (amortized O(1)
 insertion/deletion/lookup and O(n) iteration/repr/copy/equality_testing).
--text follows this line--

を消し忘れて何度か怒られ、なんとか 受け付けられました よ…。でも、上記だとno titleになってしまったので、

retitle 649895 ITP: python-ordereddict -- recipe has big-oh performance

でretitleしました…。 2

1

python2.7同梱のものは使ってないとのご指摘いただきました 。小宮さん、ありがとうございます。

2

retitleするのも宛先間違えてたし…。ダメだ、ワシ…。