From patchwork Wed Jul 25 16:36:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: package.bbclass: don't error when the root doesn't exist in do_split_packages Date: Wed, 25 Jul 2012 16:36:39 -0000 From: Ross Burton X-Patchwork-Id: 33043 Message-Id: <1343234199-21520-1-git-send-email-ross.burton@intel.com> To: openembedded-core@lists.openembedded.org If nothing has been installed in the root automake 1.12 won't install the directory, which means os.walk will throw a file not found exception. Signed-off-by: Ross Burton --- meta/classes/package.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index fc83424..0ddf788 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -74,6 +74,10 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst given package, usually plugins or modules. """ + # If the root doesn't exist, return early + if not os.path.exists(dvar + root): + return + ml = d.getVar("MLPREFIX", True) if ml: if not output_pattern.startswith(ml):