summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-05-19 16:16:42 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-05-19 16:16:42 +0000
commit4be5061f23e7be7783ab2a70b6b49631ccb0ea9c (patch)
tree29725c306a0ad79836f2c49e6831991e5978a9e3
parent11ac271b2a5aa5cf2b29da2f7528b6161a4b1d92 (diff)
oestats-client.bbclass: switch to new URL scheme
-rw-r--r--classes/oestats-client.bbclass11
1 files changed, 6 insertions, 5 deletions
diff --git a/classes/oestats-client.bbclass b/classes/oestats-client.bbclass
index 69c708c151..ff07d6edca 100644
--- a/classes/oestats-client.bbclass
+++ b/classes/oestats-client.bbclass
@@ -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 = {}, files = {}):
# 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),