Mandriva Linux Archives: cooker@mandrivalinux.org

Mandriva Linux: cooker@mandrivalinux.org


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

  • From: Michael Scherer
  • Subject: [Cooker] [ANN] tool to query bugzilla from command line
  • Date: 24 Sep 2006 10:23:29 -0000

Hi.

After reading the gentoo weekly news, i discovered a tool called pybugz
( http://www.liquidx.net/pybugz/ ), wrote by Alastair Tse, a gentoo
developer.

This is a python and command line interface to Bugzilla.

After some fix on our bugs reporting system, it now works fine with
qa.mandriva.com, out of the box, if you take the rpm package i just
commited to svn ( or with upstream source with the --base option ). 

A srpm can be found on
http://sisay.ephaone.org/~misc/tmp/python-bugz-0.6-1mdv2007.0.src.rpm
And the rpm on 
http://sisay.ephaone.org/~misc/tmp/python-bugz-0.6-1mdv2007.0.noarch.rpm

I have placed them during the freeze, i do not want to upload a new
package, so this is just to test and temporary.

Here is a quick demo :

~ $ bugz search zeroconf
 * Using http://qa.mandriva.com/ ..
 * Searching for "zeroconf" ordered by "number"
  21010 kde                  zeroconf ioslave requires nss_mdns
  21625 oblin                zeroconf hostname should be reworked
  21812 till                 zeroconf integration
  24969 oblin                Drakfirewall has no support for Zeroconf

~ $ bugz get 21812
 * Using http://qa.mandriva.com/ ..
 * Getting bug 21812 ..
Title       : zeroconf integration
Assignee    : till@mandriva.com
Reported    : 2006-04-01 20:25
Updated     : 2006-06-15 19:06:53
Status      : ASSIGNED
Severity    : normal
Priority    : normal
Reporter    : misc@mandriva.org
Component   : printerdrake
Comments    : 5
Attachments : 0
URL         : http://qa.mandriva.com/show_bug.cgi?id=21812


[Comment #1] misc@mandriva.org : 2006-04-01 20:25
------------------------------------------------------------------------------------------------------------------------------------------------------------
printerdrake should be able to detect zeroconf enabled printer.

for this, it can use this command line :

avahi-browse  -k -t -v -r -a

a printer would show something like this :

= eth0 IPv4 Lexmark T632 (6)
_pdl-datastream._tcp local
   hostname = [MDN010.local]
   address = [10.16.4.62]
   port = [9100]
   txt = ["adminurl=http://MDN010.local"; "pdl=application/postscript"
"note=Bat.D.0.Couloir" "product=(Lexmark T632)"]

On the printer i have seen, there is three services :
_printer._tcp
_pdl-datastream._tcp
_ipp._tcp

and most of them have a web interface, that can be seen by a service
_http._tcp

[Comment #2] till@mandriva.com : 2006-04-04 10:49
------------------------------------------------------------------------------------------------------------------------------------------------------------
Good idea, the scan is fast and the printers return a lot of useful
information (it seems even to return queue names for remote LPD access,
which I did not
consider as auto-detectable for now). Disadvantage is that old printers
like or LaserJet 4050 do not answer to this kind of scan (seem not to be
zeroconf-
enabled). Perhaps I should talk next week on the Printing Summit
(http://groups.osdl.org/workgroups/dtl/desktop_architects/desktop_printing) with the people
from the printer manufacturers about it.

[...]

It can also be used to post new bugs more easily, ( i didn't tested, i
do not want to clutter the base with wrong bug ).

it work on other bugzilla too, like gnome, kde, etc. It uses the csv
interface, so i think it should be safe to assume it work everywhere.


The command line can be improved ( like using a configuration file,
adding more option, like -q ), if you have suggestion or patches, do not
hesitate to send them upstream.

-- 
Michael Scherer



Date Index | Thread Index