BlogBlog ÜbersichtjailscriptportsoptFreeBSDLinksThermoskanne

Bugzilla über die Kommandozeile anfragen

Mit Hilfe von pybugz lässt sich ein Bugzilla-Bugtracker von der Kommandozeile her abfragen und falls man Schreibrechte dafür hat, auch bearbeiten. Im FreeBSD-Portbaum findet man pybugz unter devel/pybugz:

# cd /usr/ports/devel/pybugz && make install clean

Mit der -b Option wird die URL der Bugzilla-Instanz abgegeben und hat man keinen Bugzilla-Benutzer kann mit --skip-auth das Anmelden an Bugzilla übersprungen werden. Mit dem Schlüsselwort search kann nun Bugzilla durchsucht werden. Im folgenden Beispiel wird der Mozilla-Bugzilla nach "freebsd" durchsucht:

# bugz -b https://bugzilla.mozilla.org --skip-auth search freebsd
 * Using https://bugzilla.mozilla.org 
 * Searching for 'freebsd' 
352822 nobody               apps since MOZILLA_1_8_BRANCH don't build anymore on FreeBSD
449373 nobody               firefox3 FreeBSD Alpha build fails -> nsTHashtable.h:368: warning: cast from increases req
455194 wtc                  socket.c hangs in "UDP Client/Server Test - IPv6/Ipv4" on FreeBSD 7.0
512076 wtc                  Review the nspr package in FreeBSD ports
527650 nobody               Add correct FreeBSD Support
529790 nobody               Support NSS on FreeBSD ia64
543241 nobody               FreeBSD NS_IsMainThread() isn't working (TLS broken?)
544377 nobody               Build fails on FreeBSD, with unknown platform, in ipc
645865 nobody               Firefox4 fails to start (exits before GUI launch) / FreeBSD/amd64
683879 nobody               xpcom: no support for FreeBSD ia64 ipc/chromium/src/build/build_config.h
729447 general              [firefox 10 FreeBSD ia64 regression] js/src/vm/RegExpObject-inl.h:380: error: 'ignoreCase'
729511 rjesup               Import SCTP library from FreeBSD
733042 nobody               [404] https://support.mozilla.org/1/firefox/10.0.2/GNU/kFreeBSD/en-US/firefox-help
 * 13 bug(s) found.

Möchte man sich einen Bugreport näher anschauen verwendet man das Schlüsselwort get und die Bugnummer:

# bugz -b https://bugzilla.mozilla.org --skip-auth get 729511
 * Using https://bugzilla.mozilla.org 
 * Getting bug 729511 ..
Title       : Import SCTP library from FreeBSD
Assignee    : rjesup
Reported    : 2012-02-22 06:57:00 -0800
Updated     : 2012-03-23 10:43:51 -0700
Status      : NEW
Severity    : normal
Priority    : --
Reporter    : rjesup
Product     : Core
Component   : Networking
Blocked     : 694808, 729512
Comments    : 9
Attachments : 4

[Attachment] [607459] [SCTP import patch (without SCTP userspace library source files)]
[Attachment] [608436] [build sctp within the Mozilla tree]
[Attachment] [608762] [build sctp within the Mozilla tree updated]
[Attachment] [608763] [import of userland libsctp from BSD, first cut]

[Comment #0] rjesup : 2012-02-22 06:57:30 -0800
---------------------------------------------------------------------------------------------------------------------
Import libsctp from the FreeBSD implementation (already broken out as a user library).
[...]

Auch lassen sich Attachements von Bugzilla mit dem Schlüsselwort attachement und der entsprechenden Nummer herunterladen:

# bugz -b https://bugzilla.mozilla.org --skip-auth attachment 607459
 * Using https://bugzilla.mozilla.org 
 * Getting attachment 607459
 * Saving attachment: "sctp_min.patch"

Mehr Informationen zu pybugz erhält man mit der -h Option.

 Permalink

Comments

No new comments allowed (anymore) on this post.