[oe-commits] [openembedded-core] 20/21: waf.bbclass: Throw error if waf doesn't exist
git at git.openembedded.org
git at git.openembedded.org
Sun Mar 25 08:42:00 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit f8321dedec7abe392f7e49ff8eee0640463adae5
Author: Amanda Brindle <amanda.r.brindle at intel.com>
AuthorDate: Thu Mar 22 12:12:15 2018 -0700
waf.bbclass: Throw error if waf doesn't exist
Before, waf.bbclass would fail to catch FileNotFoundError. Now, it will
catch this error and say that waf doesn't exist.
Fixes [YOCTO 12553]
Signed-off-by: Amanda Brindle <amanda.r.brindle at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/classes/waf.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
index f9a851d..19e9376 100644
--- a/meta/classes/waf.bbclass
+++ b/meta/classes/waf.bbclass
@@ -15,6 +15,8 @@ python waf_preconfigure() {
d.setVar("WAF_EXTRA_CONF", "--bindir=${bindir} --libdir=${libdir}")
except subprocess.CalledProcessError as e:
bb.warn("Unable to execute waf --version, exit code %d. Assuming waf version without bindir/libdir support." % e.returncode)
+ except FileNotFoundError:
+ bb.fatal("waf does not exist in %s" % subsrcdir)
}
do_configure[prefuncs] += "waf_preconfigure"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list