aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-05-16 17:51:13 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-05-16 17:51:13 +0000
commit6fda94496ad2c1e435e8edf95c86cf7e60d11261 (patch)
tree5ce044fbf3fb190ec685bccb2fbc8e94046014cd /classes
parent8deb73eabcf5822b8966e0c4628d493eaf20025a (diff)
downloadopenembedded-6fda94496ad2c1e435e8edf95c86cf7e60d11261.tar.gz
openembedded-6fda94496ad2c1e435e8edf95c86cf7e60d11261.tar.bz2
openembedded-6fda94496ad2c1e435e8edf95c86cf7e60d11261.zip
oestats-client.bbclass: use METADATA_REVISION variable (thanks hrw)
Diffstat (limited to 'classes')
-rw-r--r--classes/oestats-client.bbclass18
1 files changed, 1 insertions, 17 deletions
diff --git a/classes/oestats-client.bbclass b/classes/oestats-client.bbclass
index f87b58f817..b98177d40a 100644
--- a/classes/oestats-client.bbclass
+++ b/classes/oestats-client.bbclass
@@ -18,15 +18,6 @@ def oestats_getid(d):
f = file(bb.data.getVar('TMPDIR', d, True) + '/oestats.id', 'r')
return f.read()
-def oestats_revision(dir):
- import re
- try:
- f = file("%s/_MTN/revision" % dir)
- m = re.search(r"old_revision \[(.*)\]", f.read())
- return m.group(1)
- except:
- return
-
def oestats_send(server, action, vars = {}):
import httplib, urllib
@@ -43,17 +34,10 @@ def oestats_start(server, builder, d):
import bb
import os.path
- # collect information about revisions
- path_bb = bb.data.getVar('BBPATH', d, True)
- for p in (path_bb or "").split(':'):
- revision = oestats_revision(p)
- if revision:
- break
-
# send report
response = oestats_send(server, "/builds/start/", {
'builder': builder,
- 'revision': revision,
+ 'revision': bb.data.getVar('METADATA_REVISION', d, True),
'machine': bb.data.getVar('MACHINE', d, True),
'distro': bb.data.getVar('DISTRO', d, True),
})