summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDr. Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com>2020-03-20 17:39:04 +0100
committerGitHub <noreply@github.com>2020-03-20 11:39:04 -0500
commit03945c2541be3bba6c38d00aeb59d6b9b998ceda (patch)
tree06d53f7680788758c19cb54361ab103cf122d9fe /lib
parentd14a6e6bc7dd44a84557cb853a2c679f5f01ce77 (diff)
downloadspack-03945c2541be3bba6c38d00aeb59d6b9b998ceda.tar.gz
spack-03945c2541be3bba6c38d00aeb59d6b9b998ceda.tar.bz2
spack-03945c2541be3bba6c38d00aeb59d6b9b998ceda.tar.xz
spack-03945c2541be3bba6c38d00aeb59d6b9b998ceda.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/patch.py3
1 files changed, 2 insertions, 1 deletions
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: