[tuxdroid-svn] r721 - api/python/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-11-21 16:04:07
|
Author: jaguarondi Date: 2007-11-21 17:04:07 +0100 (Wed, 21 Nov 2007) New Revision: 721 Modified: api/python/trunk/tuxapi_class.py Log: * Updated versioning of the daemon, now indicates if it's a release or not. Modified: api/python/trunk/tuxapi_class.py =================================================================== --- api/python/trunk/tuxapi_class.py 2007-11-21 16:01:37 UTC (rev 720) +++ api/python/trunk/tuxapi_class.py 2007-11-21 16:04:07 UTC (rev 721) @@ -3931,12 +3931,15 @@ """ if not self.connected : return '' frame = self.request(SUB_D_REQ_INFO_VERSION,0,0,0) - result=[0,0,0] + result=[0,0,0,""] if len(frame) > 0: result[0]=ord(frame[5]) result[1]=ord(frame[6]) result[2]=ord(frame[7]) - return "%d.%d.%d"%(result[0],result[1],result[2]) + print "%s"%ord(frame[8]) + if ord(frame[8]) == 0: + result[3] = " (SVN/UNRELEASED)" + return "%d.%d.%d%s"%(result[0],result[1],result[2],result[3]) #-------------------------------------------------------------------------- # Get the number of clients connected to tuxd |