diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 8ea6f4415c0..de2c231e905 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1162,7 +1162,7 @@ def patches_to_apply(self): patch_list for spec, patch_list in self.patches.items() if self.spec.satisfies(spec)) - return sorted(patchesToApply, key=lambda p: p.path_or_url) + return list(patchesToApply) def content_hash(self, content=None): """Create a hash based on the sources and logic used to build the