mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

As stated in our top level license files, the license is MIT unless otherwise stated. Add SPDX identifers accordingly. Replace older license statementa with the standardised syntax. Also drop "All Rights Reserved" expression as it isn't used now, doesn't mean anything and is confusing. (From OE-Core rev: 081a391fe09a21265881e39a2a496e4e10b4f80b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
781 B
Plaintext
28 lines
781 B
Plaintext
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
python primport_handler () {
|
|
import bb.event
|
|
if not e.data:
|
|
return
|
|
|
|
if isinstance(e, bb.event.ParseCompleted):
|
|
import oe.prservice
|
|
#import all exported AUTOPR values
|
|
imported = oe.prservice.prserv_import_db(e.data)
|
|
if imported is None:
|
|
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):
|
|
import oe.prservice
|
|
oe.prservice.prserv_check_avail(e.data)
|
|
}
|
|
|
|
addhandler primport_handler
|
|
primport_handler[eventmask] = "bb.event.ParseCompleted bb.event.ParseStarted"
|