Package: devscripts
Version: 2.9.14
Severity: wishlist
File: /usr/bin/bts
Tags: patch

        Hi,

 I wish "bts" would allow for bug ids with a # instead of:
    bts: you can only request a mailbox for a single bug report.

 The attached patch works for me and permits:
    bts --mbox show #350842

   Cheers,

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages devscripts depends on:
ii  debianutils                   2.15.2     Miscellaneous utilities specific t
ii  dpkg-dev                      1.13.13    package building tools for Debian
ii  libc6                         2.3.6-1    GNU C Library: Shared libraries an
ii  perl                          5.8.8-2    Larry Wall's Practical Extraction 
ii  sed                           4.1.4-5    The GNU sed stream editor

Versions of packages devscripts recommends:
ii  fakeroot                      1.5.7      Gives a fake root environment

-- no debconf information

-- 
Loïc Minier <[EMAIL PROTECTED]>
Current Earth status:   NOT DESTROYED
--- /usr/bin/bts        2006-02-13 12:36:48.000000000 +0100
+++ bts 2006-02-15 22:13:20.000000000 +0100
@@ -1899,7 +1899,7 @@
 # Given a thing, returns the filename for its mbox in the cache.
 sub mboxfile {
     my $thing=shift;
-    return $thing =~ /^\d+$/ ? $cachedir.$thing.".mbox" : undef;
+    return $thing =~ /^#?(\d+)$/ ? $cachedir.$1.".mbox" : undef;
 }
 
 # Given a bug number, returns the dirname for it in the cache.

Reply via email to