classes/tinderclient.bbclass:
authorHolger Freyther <zecke@selfish.org>
Sat, 23 Jul 2005 21:23:03 +0000 (21:23 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 23 Jul 2005 21:23:03 +0000 (21:23 +0000)
    -setting and reading make.cfg can not work
conf/tinder.conf:
    -set TINDER_START there for now...

classes/tinderclient.bbclass
conf/tinder.conf

index a4aabbd..cf37528 100644 (file)
@@ -7,7 +7,7 @@ def base_prepare_mail_header(data, status):
     import bb
 
     str  = "tinderbox: administrator: %s\n" % bb.data.getVar('TINDER_ADMIN', data, True)
-    str += "tinderbox: starttime: %s\n"     % bb.data.getVar('TINDER_START', bb.make.cfg, True)
+    str += "tinderbox: starttime: %s\n"     % bb.data.getVar('TINDER_START', data, True)
     str += "tinderbox: buildname: %s\n"     % bb.data.getVar('TINDER_BUILD', data, True)
     str += "tinderbox: errorparser: %s\n"   % bb.data.getVar('TINDER_ERROR', data, True)
     str += "tinderbox: status: %s\n"        % status
@@ -36,7 +36,6 @@ def base_do_tinder_report(event):
 
     # Check what we need to do Build* shows we start or are done
     if name == "BuildStarted":
-        data.setVar('TINDER_START', base_tinder_time(), event.data)
         header = base_prepare_mail_header(event.data, 'building')
         # generate
         for var in os.environ:
index 9ed63e4..00cb7fa 100644 (file)
@@ -4,7 +4,7 @@ INHERIT          += "tinderclient"
 #TINDER_ADMIN      = "you@yourhost"
 
 #Name of the client
-#TINDER_BUILDNAME  = "Tinder Client Test/NameOfClient"
+#TINDER_BUILD      = "Tinder Client Test/NameOfClient"
 
 #What error parser to use
 #TINDER_ERROR      = "unix"
@@ -18,3 +18,5 @@ INHERIT          += "tinderclient"
 #TINDER_FROM       = "you@yourhost"
 #TINDER_REPORT     = "1"
 
+TINDER_START     := "${@time.strftime('%m/%d/%Y %H:%M:%S', time.localtime())}"
+