[oe-commits] org.oe.dev oestats-client.bbclass: switch to new URL scheme

jeremy_laine commit oe at amethyst.openembedded.net
Mon May 19 16:20:00 UTC 2008


oestats-client.bbclass: switch to new URL scheme

Author: jeremy_laine at openembedded.org
Branch: org.openembedded.dev
Revision: 4b2e5f44e10900a502ea3952af7e1b6969306984
ViewMTN: http://monotone.openembedded.org/revision/info/4b2e5f44e10900a502ea3952af7e1b6969306984
Files:
1
classes/oestats-client.bbclass
Diffs:

#
# mt diff -rb1e59e39cce1c95da4e78277355c27c7e895c97a -r4b2e5f44e10900a502ea3952af7e1b6969306984
#
#
#
# patch "classes/oestats-client.bbclass"
#  from [2b82de605ebfcc914f36652cbb9c49dce3cd2442]
#    to [7a2920f3ba9b27b21f964b515890bc4c7ca08839]
#
============================================================
--- classes/oestats-client.bbclass	2b82de605ebfcc914f36652cbb9c49dce3cd2442
+++ classes/oestats-client.bbclass	7a2920f3ba9b27b21f964b515890bc4c7ca08839
@@ -5,7 +5,7 @@
 # To make use of this class, add to your local.conf:
 #
 # INHERIT += "oestats-client"
-# OESTATS_SERVER = "some.server.org:8000"
+# OESTATS_SERVER = "some.server.org"
 # OESTATS_BUILDER = "some_nickname"
 
 def oestats_setid(d, val):
@@ -44,7 +44,7 @@ def oestats_send(server, action, vars = 
 
 	# build headers
 	headers = {
-		"User-agent": "oestats-client/0.1",
+		"User-agent": "oestats-client/0.2",
 		"Content-type": "multipart/form-data; boundary=%s" % bound,
 		"Content-length": str(len(body))}
 
@@ -64,7 +64,7 @@ def oestats_start(server, builder, d):
 	# send report
 	id = ""
 	try:
-		data = oestats_send(server, "/builds/start/", {
+		data = oestats_send(server, "/builds/", {
 			'builder': builder,
 			'revision': bb.data.getVar('METADATA_REVISION', d, True),
 			'machine': bb.data.getVar('MACHINE', d, True),
@@ -90,7 +90,7 @@ def oestats_stop(server, d, status):
 
 	# send report
 	try:
-		response = oestats_send(server, "/builds/stop/%s/" % id, {
+		response = oestats_send(server, "/builds/%s/" % id, {
 			'status': status,
 		})
 	except:
@@ -125,7 +125,8 @@ def oestats_task(server, d, task, status
 	
 	# send report
 	try:
-		response = oestats_send(server, "/builds/task/%s/" % id, {
+		response = oestats_send(server, "/tasks/", {
+			'build': id,
 			'package': bb.data.getVar('PN', d, True),
 			'version': bb.data.getVar('PV', d, True),
 			'revision': bb.data.getVar('PR', d, True),






More information about the Openembedded-commits mailing list