[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#40115: reportbug: needs to display open bug reports



On Jun 24, Joey Hess wrote:
> Adrian Bridgett wrote:
> > b) How about doing something like "finger xaw-wrappers@bugs.debian.org"?
> > This could return the last weeks worth of bugs (subject and first ten lines
> > (excluding Package, version, Severity)).
> 
> That'd be cool! It could return other info too, I suppose.

In the meantime, I've put together a rudimentary HTML parser that
handles the situation in reportbug.

>From reportbug 0.10's changelog:

   * List outstanding bug reports on the package to help maintain sanity
     of developers; new option --no-bts-query (-b) added for offline use.
     (Closes: #40115)

Here's an example session:

quango2 ~> reportbug -S grave -s 'postinst is broken' xaw-wrappers 2>&1 | tee session
Querying Debian bug tracking system for outstanding reports on xaw-wrappers
27 bug report(s) found:
  Grave bugs - outstanding: 1 report(s)
    #40061: xaw-wrappers: Error in /usr/lib/xaw-wrappers/XawWrapper.pm [patch]

  Important bugs - outstanding: 2 report(s)
    #39598: xaw-wrappers: Can't upgrade xkeycaps to 2.44-2, conflict
    #40106: Fatal error at installation time

  Normal bugs - outstanding: 5 report(s)
    #26694: tetex-bin: Error: /usr/bin/xdvi.bin.real does not exist.
    #26962: tetex-bin: xdvi wrapper script is broken
    #39896: xaw-wrappers: Wrapper doesn't work on my system
    #40077: xaw-wrappers won't unpack.
    #40098: Missing parenthesis in XawWrapper.pm

  Wishlist items - outstanding: 1 report(s)
    #38126: xaw-wrappers is too much complex for a user

  Grave bugs - resolved: 8 report(s)
    #40059: xaw-wrappers: Error during installation of xaw-wrappers
    #40084: xaw-wrappers: Syntax error in /usr/lib/xaw-wrappers/XawWrapper.pm
    #40087: xaw-wrappers fails installation with a syntax error at /usr/lib/xaw
    #40088: xaw-wrappers fails installation with a syntax error at /usr/lib/xaw
    #40091: xaw-wrappers: syntax errors
    #40092: xaw-wrappers 1.00 install not working on potato
    #40093: xaw-wrappers: Syntax error in script
    #40094: Error while upgrading xfig

  Important bugs - resolved: 1 report(s)
    #40054: Typos in /usr/lib/xaw-wrappers/XawWrapper.pm
(1-18) Is the bug you found in the above list (s to skip rest) [y|N|s]? n
  Normal bugs - resolved: 9 report(s)
    #38837: xkeycaps 2.44-2 doesn't install correctly
    #40000: lossage with /usr/X11R6 -> /home/X11R6
    #40042: xaw-wrappers: config failed
    #40064: xaw-wrappers
    #40067: xaw-wrappers(i386): XawWrapper.pm syntax errors
    #40072: xaw-wrappers: Syntax errors in XawWrapper.pm
    #40073: xaw-wrappers: syntax error on /usr/lib/xaw-wrappers/XawWrapper.pm
    #40116: XawWrapper.pm in xaw-wrappers_1.00_all.deb has syntax error.
    #40130: apt-get install of xaw-wrappers from unstable fails
(19-27) Is the bug you found in the above list (s to skip rest) [y|N|s]? y
Aborted.
quango2 ~> 

As you can see, it snarfs the bug headers from the web page and
handles paging (I have a 30-line console).  It uses a nifty little
HTML parser that looks for <h2> and <li> tags on the Debian bugs
pages.  If you *really* know it's a bug, you can bypass the BTS query
with '--no-bts-query'.


Chris
-- 
=============================================================================
|        Chris Lawrence       |  You have a computer.  Do you have Linux?   |
|   <quango@watervalley.net>  |    http://www.linux-m68k.org/index.html     |
|                             |                                             |
|   Grad Student, Pol. Sci.   |       Do you want your bank to snoop?       |
|  University of Mississippi  |      http://www.defendyourprivacy.com/      |
=============================================================================


Reply to: