diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-15 11:54:09 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:27:40 +0000 |
commit | 4c25cd5f7ab114287679eed3808f79cb75270663 (patch) | |
tree | 716777f392e4cd4793f0342685bce3e7de522163 /scripts/lib | |
parent | a0f99f3bcfb317b687389b4d39c49ad6ccd4e723 (diff) | |
download | poky-4c25cd5f7ab114287679eed3808f79cb75270663.tar.gz |
lib/buildstats: Improve error message
Just stating the recipe counts are different isn't helpful, showing
the differences makes it much easier to understand what changed.
(From OE-Core rev: 1d84b782e3af6f0e6922d72895c905877cc33739)
(From OE-Core rev: 047fd7cf6fc2a3d5d170241f5cc5b61b8d9d8522)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/buildstats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/buildstats.py b/scripts/lib/buildstats.py index d9aadf3cb8..f7db3eaf92 100644 --- a/scripts/lib/buildstats.py +++ b/scripts/lib/buildstats.py | |||
@@ -263,7 +263,7 @@ class BuildStats(dict): | |||
263 | """Aggregate other buildstats into this""" | 263 | """Aggregate other buildstats into this""" |
264 | if set(self.keys()) != set(buildstats.keys()): | 264 | if set(self.keys()) != set(buildstats.keys()): |
265 | raise ValueError("Refusing to aggregate buildstats, set of " | 265 | raise ValueError("Refusing to aggregate buildstats, set of " |
266 | "recipes is different") | 266 | "recipes is different: %s" % (set(self.keys()) ^ set(buildstats.keys()))) |
267 | for pkg, data in buildstats.items(): | 267 | for pkg, data in buildstats.items(): |
268 | self[pkg].aggregate(data) | 268 | self[pkg].aggregate(data) |
269 | 269 | ||