Skip to contentSkip to conversation

lib/bb/{data, siggen}: Don't warn on SkipRecipe exceptions

PATCH New Nathan Rossi 1 participant 1 message Apr 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/bb/{data, siggen}: Don't warn on SkipRecipe exceptions

Recipes/variables that raise a SkipRecipe exception are intentionally skipped, and should not generate warnings.

---
 lib/bb/data.py   | 2 ++
 lib/bb/siggen.py | 2 ++
 2 files changed, 4 insertions(+)
lib/bb/data.py +2 -0
index 0403754dee..134afaacc9 100644
@@ -359,6 +359,8 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, d):
 
         deps |= set((vardeps or "").split())
         deps -= set(varflags.get("vardepsexclude", "").split())
+    except bb.parse.SkipRecipe:
+        raise
     except Exception as e:
         bb.warn("Exception during build_dependencies for %s" % key)
         raise
lib/bb/siggen.py +2 -0
index 25ad3e9165..169756e254 100644
@@ -157,6 +157,8 @@ class SignatureGeneratorBasic(SignatureGenerator):
 
         try:
             taskdeps = self._build_data(fn, d)
+        except bb.parse.SkipRecipe:
+            raise
         except:
             bb.warn("Error during finalise of %s" % fn)
             raise
Signature · 1 line
2.11.0