]> code.ossystems Code Review - openembedded-core.git/commit
package.bbclass: make do_split_packages handle non-existent root directories
authorRoss Burton <ross.burton@intel.com>
Thu, 6 Dec 2012 12:53:14 +0000 (12:53 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Dec 2012 15:54:26 +0000 (15:54 +0000)
commit937101e3fdd6afd00f6f8a8be411a67110c4ae78
tree4792db2bd348f13e70fb191622baf241fdfe2965
parent8a8d00f4c9f7fe5f9f173b43b86cd18a6c75435c
package.bbclass: make do_split_packages handle non-existent root directories

This function has different behaviour if the split directory doesn't exist
depending on the recursive argument: non-recursive uses os.listdirs which throws
an exception, recursive uses os.walk which doesn't.

do_split_packages should silently handle non-existent directories because it's
mainly used for plugin directories, which may end up being empty though changing
the distro configuration (for example, connman without wifi distro feature).

So, add an early exit if the split root doesn't exist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/package.bbclass