elpa: fix support for patched version (#42803)

Co-authored-by: Ning Li <ning.li@amd.com>
This commit is contained in:
AMD Toolchain Support 2024-02-22 20:13:12 +05:30 committed by GitHub
parent 28d25affcc
commit 1af57e13fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,7 +98,7 @@ def headers(self):
# upstream sometimes adds tarball suffixes not part of the internal version
elpa_version = str(self.spec.version)
for vsuffix in ("_bugfix",):
for vsuffix in ("_bugfix", "-patched"):
if elpa_version.endswith(vsuffix): # implementation of py3.9 removesuffix
elpa_version = elpa_version[: -len(vsuffix)]