summaryrefslogtreecommitdiff
path: root/meta/classes/prexport.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2012-03-07 15:36:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-08 12:16:25 -0800
commit7588a4f2e2728da0ff7a773b18527f3711b138f2 (patch)
tree1a77d6734f425861e99139d6e6e2cad119e14334 /meta/classes/prexport.bbclass
parente27af1f273e9a7348dd8f5542df9206acd9210f3 (diff)
downloadopenembedded-core-7588a4f2e2728da0ff7a773b18527f3711b138f2.tar.gz
openembedded-core-7588a4f2e2728da0ff7a773b18527f3711b138f2.tar.bz2
openembedded-core-7588a4f2e2728da0ff7a773b18527f3711b138f2.tar.xz
openembedded-core-7588a4f2e2728da0ff7a773b18527f3711b138f2.zip
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. 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.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/prexport.bbclass b/meta/classes/prexport.bbclass
index 5b5b707a8..2b16a6694 100644
--- a/meta/classes/prexport.bbclass
+++ b/meta/classes/prexport.bbclass
@@ -21,11 +21,13 @@ python prexport_handler () {
bb.fatal("prexport_handler: export failed!")
(metainfo, datainfo) = retval
if not datainfo:
- bb.error("prexport_handler: No AUROPR values found for %s" % ver)
+ bb.warn("prexport_handler: No AUROPR values found for %s" % ver)
return
oe.prservice.prserv_export_tofile(e.data, None, datainfo, False)
elif isinstance(e, bb.event.ParseStarted):
import bb.utils
+ import oe.prservice
+ oe.prservice.prserv_check_avail(e.data)
#remove dumpfile
bb.utils.remove(e.data.getVar('PRSERV_DUMPFILE', True))
elif isinstance(e, bb.event.ParseCompleted):