diff options
author | Dr. Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com> | 2020-03-20 17:39:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 11:39:04 -0500 |
commit | 03945c2541be3bba6c38d00aeb59d6b9b998ceda (patch) | |
tree | 06d53f7680788758c19cb54361ab103cf122d9fe | |
parent | d14a6e6bc7dd44a84557cb853a2c679f5f01ce77 (diff) | |
download | spack-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.
-rw-r--r-- | lib/spack/spack/patch.py | 3 |
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: |