Package: devscripts
Version: 2.9.4
Severity: normal
File: /usr/bin/bts

Hi,

when ~/.devscripts_cache/bts/ exists, bts -m show nnnn downloads
nnnn.html to this directory and then complains that it can't read the
mbox.
The culprit seems to be the "download" function, which has a "mboxing"
argument but doesn't do anything with it (it downloads
"http://bugs.debian.org/nnnn"; anyway).

When ~/.devscripts_cache/bts doesn't exist, the function called is
download_mbox, which correctly downloads
"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=nnnn&mbox=yes";.

I fixed this locally with the following patch, which disables caching for
mboxes, but there probably is a better solution:

--- /usr/bin/bts        2005-08-04 04:15:22.000000000 +0200
+++ /home/julien/bin/bts        2005-09-01 00:09:56.658575964 +0200
@@ -1689,7 +1689,7 @@
        }
     }
     # else we're in online mode
-    elsif ($hascache && $caching && have_lwp() && $thing ne '') {
+    elsif ($hascache && $caching && have_lwp() && $thing ne '' && !$mboxmode) {
        my $live=download($thing, 0, $mboxmode);
 
        if ($mboxmode) {


Thanks,
Julien Cristau



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.10
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages devscripts depends on:
ii  debianutils                   2.14.1     Miscellaneous utilities specific t
ii  dpkg-dev                      1.13.10    Package building tools for Debian
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  perl                          5.8.7-3    Larry Wall's Practical Extraction 
ii  sed                           4.1.2-8    The GNU sed stream editor

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

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to