Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rmi1974/f05c020abe9bac3960e26df511c02066 to your computer and use it in GitHub Desktop.
Save rmi1974/f05c020abe9bac3960e26df511c02066 to your computer and use it in GitHub Desktop.
Accessing Bugzilla via command line using 'pybugz' #bugzilla #wine #winehq #commandlinefu

Accessing Bugzilla via command line using 'pybugz'

Follow the instructions from Github williamh / pybugz: Python interface to Bugzilla.

To access for example WineHQ Bugzilla, create a ~/.bugzrc with following content:

[winehq]
base = https://bugs.winehq.org/xmlrpc.cgi

[default]
connection: winehq

Use lbugz wrapper script to execute the Python client from the cloned Github repository without installing.

# Wine bugs reported by me in total
./lbugz search [email protected] 
 
# Wine bugs reported by me still open
./lbugz search [email protected] --status=NEW --status=ASSIGNED --status=REOPENED

Other useful queries (mostly to fixup missing fields):

# List all bug reports that have no version set
./lbugz search --version=unspecified --product=wine

If the output is redirected/piped use the --columns parameter to avoid lines getting truncated to 80 characters (terminal width / DEFAULT_NUM_COLS).

./lbugz --columns=200 search [email protected] &> log.txt

# filter out any bugs which have 'wine-bugs' assignee to get negated result (bugs assigned to people)
grep -v wine-bugs log.txt

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment