elpa: fix support for patched version (#42803)
Co-authored-by: Ning Li <ning.li@amd.com>
This commit is contained in:
parent
28d25affcc
commit
1af57e13fb
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ def headers(self):
|
||||||
|
|
||||||
# upstream sometimes adds tarball suffixes not part of the internal version
|
# upstream sometimes adds tarball suffixes not part of the internal version
|
||||||
elpa_version = str(self.spec.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
|
if elpa_version.endswith(vsuffix): # implementation of py3.9 removesuffix
|
||||||
elpa_version = elpa_version[: -len(vsuffix)]
|
elpa_version = elpa_version[: -len(vsuffix)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue