[oe-commits] org.oe.dev classes/seppuku.bbclass: Make it work with OpenEmbedded bugtracker
freyther commit
openembedded-commits at lists.openembedded.org
Fri Mar 16 21:11:29 UTC 2007
classes/seppuku.bbclass: Make it work with OpenEmbedded bugtracker
Do not error out on python2.5 when splitting the url. We had
an empty key and a none value.
If there was no output file, do not error. This check is the same
as in tinderclient.bbclass
Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: 084b301b3063c88fe114f956424ce200979b1c31
ViewMTN: http://monotone.openembedded.org/revision.psp?id=084b301b3063c88fe114f956424ce200979b1c31
Files:
1
classes/seppuku.bbclass
Diffs:
#
# mt diff -r8c1a9173b332269434bb0e01be89608c404ea177 -r084b301b3063c88fe114f956424ce200979b1c31
#
#
#
# patch "classes/seppuku.bbclass"
# from [3e349301705114717946d6986aedd775370dcb56]
# to [1d2dec65f9b483255b98cf99f34910c715b04dbd]
#
============================================================
--- classes/seppuku.bbclass 3e349301705114717946d6986aedd775370dcb56
+++ classes/seppuku.bbclass 1d2dec65f9b483255b98cf99f34910c715b04dbd
@@ -15,6 +15,8 @@ def seppuku_spliturl(url):
param = {}
for par in query.split("&"):
(key,value) = urllib.splitvalue(par)
+ if not key or len(key) == 0 or not value:
+ continue
key = urllib.unquote(key)
value = urllib.unquote(value)
param[key] = value
@@ -289,6 +291,7 @@ python seppuku_eventhandler() {
else:
print "Logged into the box"
+ file = None
if name == "TaskFailed":
bugname = "%(package)s-%(pv)s-%(pr)s-%(task)s" % { "package" : bb.data.getVar("PN", data, True),
"pv" : bb.data.getVar("PV", data, True),
@@ -296,11 +299,11 @@ python seppuku_eventhandler() {
"task" : e.task }
log_file = glob.glob("%s/log.%s.*" % (bb.data.getVar('T', event.data, True), event.task))
text = "The package failed to build at %s" % bb.data.getVar('DATETIME', data, True)
- file = open(log_file[0], 'r')
+ if len(log_file) != 0:
+ file = open(log_file[0], 'r')
elif name == "NoProvider":
bugname = "noprovider for %s runtime: %s" % (event.getItem, event.getisRuntime)
text = "Please fix it"
- file = None
else:
assert False
More information about the Openembedded-commits
mailing list