extras-buildsys/client client.py,1.12,1.13
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Wed Jul 20 14:51:50 UTC 2005
Author: dcbw
Update of /cvs/fedora/extras-buildsys/client
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11592/client
Modified Files:
client.py
Log Message:
2005-07-20 Dan Williams <dcbw at redhat.com>
* builder/builder.py
server/main.py
- Don't use lighttpd any more
- Fix some issues with non-SSL build systems (Oliver Falk)
* client/client.py
server/UserInterface.py
- Return job lists as dicts for easier use
- Return archjobs embedded in the job list rather than a separate array
Index: client.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/client/client.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- client.py 19 Jul 2005 02:29:47 -0000 1.12
+++ client.py 20 Jul 2005 14:51:48 -0000 1.13
@@ -124,7 +124,7 @@
print query_args
try:
- (e, msg, jobs, archjobs) = server.list_jobs(query_args)
+ (e, msg, jobs) = server.list_jobs(query_args)
except socket.error, e:
print "Error connecting to build server: '%s'" % e
return
@@ -136,10 +136,9 @@
else:
for job in jobs:
try:
- print job
- for archjob in archjobs:
- if archjob[1] == job[0]:
- print "\t%s(%s): %s %s/%s" % (archjob[5], archjob[4], archjob[0], archjob[6], archjob[7])
+ print "%d: %s (%s) %s %s" % (job['uid'], job['package'], job['source'], job['username'], job['status'])
+ for archjob in job['archjobs']:
+ print "\t%s(%s): %s %s/%s" % (archjob['builder_addr'], archjob['arch'], archjob['jobid'], archjob['status'], archjob['builder_status'])
print ''
except IOError:
pass
More information about the scm-commits
mailing list