diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2012-03-07 15:36:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-08 12:16:29 -0800 |
commit | e189a7113ca44eb202d1da8139678ba9729286b4 (patch) | |
tree | 2009f03c5dfea00cba3067b3f18cb066772b4c15 /meta/classes/prexport.bbclass | |
parent | 10d6c4e056b4c3333f15e442af4283c99e5951e2 (diff) | |
download | poky-e189a7113ca44eb202d1da8139678ba9729286b4.tar.gz |
prservice: Added sanity check for prservice connection.
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>
Diffstat (limited to 'meta/classes/prexport.bbclass')
-rw-r--r-- | meta/classes/prexport.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/prexport.bbclass b/meta/classes/prexport.bbclass index 5b5b707a88..2b16a66942 100644 --- a/meta/classes/prexport.bbclass +++ b/meta/classes/prexport.bbclass | |||
@@ -21,11 +21,13 @@ python prexport_handler () { | |||
21 | bb.fatal("prexport_handler: export failed!") | 21 | bb.fatal("prexport_handler: export failed!") |
22 | (metainfo, datainfo) = retval | 22 | (metainfo, datainfo) = retval |
23 | if not datainfo: | 23 | if not datainfo: |
24 | bb.error("prexport_handler: No AUROPR values found for %s" % ver) | 24 | bb.warn("prexport_handler: No AUROPR values found for %s" % ver) |
25 | return | 25 | return |
26 | oe.prservice.prserv_export_tofile(e.data, None, datainfo, False) | 26 | oe.prservice.prserv_export_tofile(e.data, None, datainfo, False) |
27 | elif isinstance(e, bb.event.ParseStarted): | 27 | elif isinstance(e, bb.event.ParseStarted): |
28 | import bb.utils | 28 | import bb.utils |
29 | import oe.prservice | ||
30 | oe.prservice.prserv_check_avail(e.data) | ||
29 | #remove dumpfile | 31 | #remove dumpfile |
30 | bb.utils.remove(e.data.getVar('PRSERV_DUMPFILE', True)) | 32 | bb.utils.remove(e.data.getVar('PRSERV_DUMPFILE', True)) |
31 | elif isinstance(e, bb.event.ParseCompleted): | 33 | elif isinstance(e, bb.event.ParseCompleted): |