File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import bugzilla.util
1818import locale
1919import pprint
2020import socket
21+ import xmlrpclib
2122
2223version = '0.6.0'
2324default_bz = 'https://bugzilla.redhat.com/xmlrpc.cgi'
@@ -263,7 +264,12 @@ by Bugzilla.
263264bugzilla query --bug_id 62037
264265.SH EXIT STATUS
265266.BR bugzilla
266- returns 1 if login fails or it is interrupted, and 0 otherwise.
267+ normally returns 0 if the requested command was successful. Otherwise, exit
268+ status is 1 if
269+ .BR bugzilla
270+ is interrupted by the user (or a login attempt fails), 2 if a
271+ socket error occurs (e.g. TCP connection timeout), and 3 if the server returns
272+ an XML-RPC fault.
267273.SH NOTES
268274Not everything that's exposed in the Web UI is exposed by XML-RPC, and not
269275everything that's exposed by XML-RPC is used by
@@ -659,3 +665,6 @@ if __name__ == '__main__':
659665 except socket .error , e :
660666 print "\n Connection lost/failed: %s" % str (e )
661667 sys .exit (2 )
668+ except xmlrpclib .Fault , e :
669+ print "\n Server error: %s" % str (e )
670+ sys .exit (3 )
Original file line number Diff line number Diff line change 1- .TH bugzilla 1 "February 25 , 2010" "version 0.6.0" "User Commands"
1+ .TH bugzilla 1 "April 02 , 2010" "version 0.6.0" "User Commands"
22.SH NAME
33bugzilla \- command-line interface to Bugzilla over XML-RPC
44.SH SYNOPSIS
@@ -192,7 +192,12 @@ show this help message and exit
192192bugzilla query --bug_id 62037
193193.SH EXIT STATUS
194194.BR bugzilla
195- returns 1 if login fails or it is interrupted, and 0 otherwise.
195+ normally returns 0 if the requested command was successful. Otherwise, exit
196+ status is 1 if
197+ .BR bugzilla
198+ is interrupted by the user (or a login attempt fails), 2 if a
199+ socket error occurs (e.g. TCP connection timeout), and 3 if the server returns
200+ an XML-RPC fault.
196201.SH NOTES
197202Not everything that's exposed in the Web UI is exposed by XML-RPC, and not
198203everything that's exposed by XML-RPC is used by
You can’t perform that action at this time.
0 commit comments