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-16 08:19:34 +0000 |
commit | 8d2dd4a30034559838e2433ad58aeffccaf40555 (patch) | |
tree | 6a88b3a14ec19fd0c4a3926774cfef3a4fcd6e08 | |
parent | acbb9acd6ff15e66f94734e61460160835014c25 (diff) | |
download | poky-8d2dd4a30034559838e2433ad58aeffccaf40555.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)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 | ||