]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: orm Add get_base_recipe_file to CustomImageRecipe
authorMichael Wood <michael.g.wood@intel.com>
Tue, 26 Apr 2016 16:18:06 +0000 (17:18 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Apr 2016 09:25:16 +0000 (10:25 +0100)
commitbc30d1b235b9ecacef5b2eaa851b9247d857f317
treeaeaa84fe1ac6295672591eaed88118808f0ccc75
parent309f5907a3661821e041ed14645b5d165007b058
toaster: orm Add get_base_recipe_file to CustomImageRecipe

This function returns the base recipe file path only if it currently
exists. This allows us to know whether we can proceed at this point with
generating a custom image recipe. It also enables us to call this
function from the templates to enable visual indication of this state.

Some whitespace fixes also added in generate_recipe_file_contents

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/orm/models.py