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/primport.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/primport.bbclass')
-rw-r--r-- | meta/classes/primport.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/primport.bbclass b/meta/classes/primport.bbclass index 08e5a8f426..37b0d6b1b7 100644 --- a/meta/classes/primport.bbclass +++ b/meta/classes/primport.bbclass | |||
@@ -12,6 +12,9 @@ python primport_handler () { | |||
12 | 12 | ||
13 | for (version, pkgarch, checksum, value) in imported: | 13 | for (version, pkgarch, checksum, value) in imported: |
14 | bb.note("imported (%s,%s,%s,%d)" % (version, pkgarch, checksum, value)) | 14 | bb.note("imported (%s,%s,%s,%d)" % (version, pkgarch, checksum, value)) |
15 | elif isinstance(e, bb.event.ParseStarted): | ||
16 | import oe.prservice | ||
17 | oe.prservice.prserv_check_avail(e.data) | ||
15 | } | 18 | } |
16 | 19 | ||
17 | addhandler primport_handler | 20 | addhandler primport_handler |