| # Copyright OpenEmbedded Contributors |
| # SPDX-License-Identifier: MIT |
| python primport_handler () { |
| if isinstance(e, bb.event.ParseCompleted): |
| #import all exported AUTOPR values |
| imported = oe.prservice.prserv_import_db(e.data) |
| 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): |
| oe.prservice.prserv_check_avail(e.data) |
| addhandler primport_handler |
| primport_handler[eventmask] = "bb.event.ParseCompleted bb.event.ParseStarted" |