diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-30 15:55:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-01 14:29:31 +0100 |
commit | 91a164cb872d0c1f20d3a11c637c3a15fb1c8f77 (patch) | |
tree | 98ca4b91d3d6eeb4f0ec3e9244c64f2404bd3beb /bitbake/lib/bb/parse/__init__.py | |
parent | 044296ce4c40edb9b5584a5f4118882944b248f6 (diff) | |
download | poky-91a164cb872d0c1f20d3a11c637c3a15fb1c8f77.tar.gz |
bitbake: event: Add SkipRecipe event to replace SkipPackage
In the depths of time we were rather confused about naming. bb files
are recipes, the event to skip parsing them should be SkipRecipe,
not SkipPackage. This changes bitbake to use the better name but
leaves the other around for now. We can therefore start removing
references to it from the metadata.
(Bitbake rev: 98d9e6e0f514a7cb7da1d99bf4bd5602b89426d6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index bf5ed05e7f..2303f15b9e 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -49,8 +49,11 @@ class ParseError(Exception): | |||
49 | else: | 49 | else: |
50 | return "ParseError in %s: %s" % (self.filename, self.msg) | 50 | return "ParseError in %s: %s" % (self.filename, self.msg) |
51 | 51 | ||
52 | class SkipPackage(Exception): | 52 | class SkipRecipe(Exception): |
53 | """Exception raised to skip this package""" | 53 | """Exception raised to skip this recipe""" |
54 | |||
55 | class SkipPackage(SkipRecipe): | ||
56 | """Exception raised to skip this recipe (use SkipRecipe in new code)""" | ||
54 | 57 | ||
55 | __mtime_cache = {} | 58 | __mtime_cache = {} |
56 | def cached_mtime(f): | 59 | def cached_mtime(f): |