]> code.ossystems Code Review - openembedded-core.git/commit
staging: Fix sysroot problem with populate_sysroot dependencies on do_fetch
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Apr 2017 23:20:01 +0000 (00:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Apr 2017 17:09:20 +0000 (18:09 +0100)
commitb32fbfc85b14059f0bfdeeffe2c52f8d3c20f276
treefa274ac87bd89a172a4dcf03304ae44151b1d6bc
parent8c52a530ba2beb438aa47956bcec3777a1eafe5f
staging: Fix sysroot problem with populate_sysroot dependencies on do_fetch

Dependencies on svn:// urls were failing as the cleandirs on do_fetch was destroying
any sysroot setup by the extend_recipe_sysroot function.

Add code so that if the task do_fetch, we move the cleandirs to a separate function before
the extend_recipe_sysroot prefunc else we'd wipe out the sysroot we just created.

This allows fetcher do_populate_sysroot dependencies to work correctly again.

I did try various other approaches and a seperate function with cleandirs was the
cleanest way to add this without code duplication or too much complexity.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/staging.bbclass