e189a7113c
Fixed bug [YOCTO #2052]. Added sanity check for variables of PRSERV_HOST and PRSERV_PORT, also for the connection availabity of prservice. (From OE-Core rev: 7588a4f2e2728da0ff7a773b18527f3711b138f2) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
21 lines
627 B
Text
21 lines
627 B
Text
python primport_handler () {
|
|
import bb.event
|
|
if not e.data:
|
|
return
|
|
|
|
if isinstance(e, bb.event.ParseCompleted):
|
|
import oe.prservice
|
|
#import all exported AUTOPR values
|
|
imported = oe.prservice.prserv_import_db(e.data)
|
|
if imported is None:
|
|
bb.fatal("import failed!")
|
|
|
|
for (version, pkgarch, checksum, value) in imported:
|
|
bb.note("imported (%s,%s,%s,%d)" % (version, pkgarch, checksum, value))
|
|
elif isinstance(e, bb.event.ParseStarted):
|
|
import oe.prservice
|
|
oe.prservice.prserv_check_avail(e.data)
|
|
}
|
|
|
|
addhandler primport_handler
|