Show the packaga name for a missing patch sha256 (#15441)

When a patches sha256 is missing, also show the
packagename, so that analyzing is easier.
This commit is contained in:
Dr. Christian Tacke 2020-03-20 17:39:04 +01:00 committed by GitHub
parent d14a6e6bc7
commit 03945c2541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,7 +346,8 @@ def patch_for_package(self, sha256, pkg):
sha_index = self.index.get(sha256)
if not sha_index:
raise NoSuchPatchError(
"Couldn't find patch with sha256: %s" % sha256)
"Couldn't find patch for package %s with sha256: %s"
% (pkg.fullname, sha256))
patch_dict = sha_index.get(pkg.fullname)
if not patch_dict: