]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: check for invalid characters in OEROOT
authorJoshua Lock <josh@linux.intel.com>
Wed, 2 Jun 2010 14:24:05 +0000 (15:24 +0100)
committerJoshua Lock <josh@linux.intel.com>
Wed, 2 Jun 2010 14:25:00 +0000 (15:25 +0100)
Some characters in the path for OEROOT are known to cause issues, so check for
them in the sanity checker.
Currerently we warn on +'s and spaces.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/sanity.bbclass

index 3cf1c56aefc4f2783d5436d1424973af87e71c1e..ab929ad61d5b282f64a6e1c001933111edcfe780 100644 (file)
@@ -175,6 +175,12 @@ def check_sanity(e):
                f.write(current_abi)
        f.close()
 
+       oeroot = data.getVar('OEROOT', e.data)
+       if oeroot.find ('+') != -1:
+               messages = messages + "Error, you have an invalid character (+) in your OEROOT directory path. Please more Poky to a directory which doesn't include a +."
+       elif oeroot.find (' ') != -1:
+               messages = messages + "Error, you have a space in your OEROOT directory path. Please move Poky to a directory which doesn't include a space."
+
        if messages != "":
                raise_sanity_error(messages)