mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
classes: Use modern exception raising syntax
Modern expection rasing syntax is function call format, convert to this to keep python 3 happy and model correct coding style in the core. (From OE-Core rev: f4b382754603d3f1caa13824bcc8d06b568bbc59) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -146,8 +146,8 @@ python systemd_populate_packages() {
|
||||
if path_found != '':
|
||||
systemd_add_files_and_parse(pkg_systemd, path_found, service, keys)
|
||||
else:
|
||||
raise bb.build.FuncFailed, "\n\nSYSTEMD_SERVICE_%s value %s does not exist" % \
|
||||
(pkg_systemd, service)
|
||||
raise bb.build.FuncFailed("SYSTEMD_SERVICE_%s value %s does not exist" % \
|
||||
(pkg_systemd, service))
|
||||
|
||||
# Run all modifications once when creating package
|
||||
if os.path.exists(d.getVar("D", True)):
|
||||
|
||||
Reference in New Issue
Block a user