diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-07 13:55:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 14:06:50 +0100 |
commit | db8217f6b89be11a17e9f3cba7d98be64d8aded1 (patch) | |
tree | 8bd8c54c90035d3fbe4d7e9a85fe701b535d7a4a /meta/classes/systemd.bbclass | |
parent | e0bd393be8e6419cd19dd860c75de75ea73c7509 (diff) | |
download | poky-db8217f6b89be11a17e9f3cba7d98be64d8aded1.tar.gz |
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>
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r-- | meta/classes/systemd.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 8084251f13..86d9a9a835 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass | |||
@@ -146,8 +146,8 @@ python systemd_populate_packages() { | |||
146 | if path_found != '': | 146 | if path_found != '': |
147 | systemd_add_files_and_parse(pkg_systemd, path_found, service, keys) | 147 | systemd_add_files_and_parse(pkg_systemd, path_found, service, keys) |
148 | else: | 148 | else: |
149 | raise bb.build.FuncFailed, "\n\nSYSTEMD_SERVICE_%s value %s does not exist" % \ | 149 | raise bb.build.FuncFailed("SYSTEMD_SERVICE_%s value %s does not exist" % \ |
150 | (pkg_systemd, service) | 150 | (pkg_systemd, service)) |
151 | 151 | ||
152 | # Run all modifications once when creating package | 152 | # Run all modifications once when creating package |
153 | if os.path.exists(d.getVar("D", True)): | 153 | if os.path.exists(d.getVar("D", True)): |