From 03945c2541be3bba6c38d00aeb59d6b9b998ceda Mon Sep 17 00:00:00 2001 From: "Dr. Christian Tacke" <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Fri, 20 Mar 2020 17:39:04 +0100 Subject: 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. --- lib/spack/spack/patch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/patch.py b/lib/spack/spack/patch.py index 3a3c1507e1..3a839c5b0f 100644 --- a/lib/spack/spack/patch.py +++ b/lib/spack/spack/patch.py @@ -346,7 +346,8 @@ class PatchCache(object): 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: -- cgit v1.2.3-70-g09d2