]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
parse: make vars_from_file return None for non-recipes
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 17 Feb 2014 14:07:40 +0000 (14:07 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Feb 2014 15:30:02 +0000 (15:30 +0000)
It doesn't really make sense to set PN from .conf files, for example.
More concretely, this avoids the config hash changing unnecessarily
within Hob due to PN effectively changing (since bblayers.conf is
parsed first and then .hob.conf).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/parse/__init__.py

index 97983c9880f8a7bd8e2ce8c3ae6d0579f6cee1aa..e4a44dda11f0a8d54ada1b76c0aeab29dcaee448 100644 (file)
@@ -127,7 +127,7 @@ def resolve_file(fn, d):
 # Used by OpenEmbedded metadata
 __pkgsplit_cache__={}
 def vars_from_file(mypkg, d):
-    if not mypkg:
+    if not mypkg or not mypkg.endswith((".bb", ".bbappend")):
         return (None, None, None)
     if mypkg in __pkgsplit_cache__:
         return __pkgsplit_cache__[mypkg]