diff options
Diffstat (limited to 'meta/classes/primport.bbclass')
-rw-r--r-- | meta/classes/primport.bbclass | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/classes/primport.bbclass b/meta/classes/primport.bbclass new file mode 100644 index 0000000000..08e5a8f426 --- /dev/null +++ b/meta/classes/primport.bbclass | |||
@@ -0,0 +1,17 @@ | |||
1 | python primport_handler () { | ||
2 | import bb.event | ||
3 | if not e.data: | ||
4 | return | ||
5 | |||
6 | if isinstance(e, bb.event.ParseCompleted): | ||
7 | import oe.prservice | ||
8 | #import all exported AUTOPR values | ||
9 | imported = oe.prservice.prserv_import_db(e.data) | ||
10 | if imported is None: | ||
11 | bb.fatal("import failed!") | ||
12 | |||
13 | for (version, pkgarch, checksum, value) in imported: | ||
14 | bb.note("imported (%s,%s,%s,%d)" % (version, pkgarch, checksum, value)) | ||
15 | } | ||
16 | |||
17 | addhandler primport_handler | ||