[oe-commits] [bitbake] 08/18: tinfoil: add a parse_recipes() function

git at git.openembedded.org git at git.openembedded.org
Wed Jul 19 14:44:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 1db45b3728dfe5e263b6d39162e903835b019bb3
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Wed Jul 19 11:56:01 2017 +0200

    tinfoil: add a parse_recipes() function
    
    Python style recommends underscore based naming rather than camelCase,
    and thus the former has been used for most of tinfoil's functions. Add
    an underscored version of parseRecipes() for consistency and change the
    one place we call it to use the new version.
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 bin/bitbake-layers | 2 +-
 lib/bb/tinfoil.py  | 8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 04e6bec..d184011 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -90,7 +90,7 @@ def main():
 
         if getattr(args, 'parserecipes', False):
             tinfoil.config_data.disableTracking()
-            tinfoil.parseRecipes()
+            tinfoil.parse_recipes()
             tinfoil.config_data.enableTracking()
 
         return args.func(args)
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
index 65ebdc2..ddc7b06 100644
--- a/lib/bb/tinfoil.py
+++ b/lib/bb/tinfoil.py
@@ -289,7 +289,13 @@ class Tinfoil:
 
     def parseRecipes(self):
         """
-        Force a parse of all recipes. Normally you should specify
+        Legacy function - use parse_recipes() instead.
+        """
+        self.parse_recipes()
+
+    def parse_recipes(self):
+        """
+        Load information on all recipes. Normally you should specify
         config_only=False when calling prepare() instead of using this
         function; this function is designed for situations where you need
         to initialise Tinfoil and use it with config_only=True first and

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list