From 2ad94bc76a83bd17ffae1bbefab407adf4895307 Mon Sep 17 00:00:00 2001 From: Peter Josef Scheibel Date: Thu, 20 Oct 2022 13:17:12 -0600 Subject: [PATCH] make sure to remove old overidden_attrs --- lib/spack/spack/repo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py index 87817d46e83..bca3cc36726 100644 --- a/lib/spack/spack/repo.py +++ b/lib/spack/spack/repo.py @@ -1378,6 +1378,8 @@ def get_pkg_class(self, pkg_name): setattr(cls, key, val) if new_overidden_attrs: setattr(cls, "overidden_attrs", dict(new_overidden_attrs)) + else: + delattr(cls, "overidden_attrs") return cls