elpa: fix support for patched version (#42803)
Co-authored-by: Ning Li <ning.li@amd.com>
This commit is contained in:
		 AMD Toolchain Support
					AMD Toolchain Support
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							28d25affcc
						
					
				
				
					commit
					1af57e13fb
				
			| @@ -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)] | ||||||
| 
 | 
 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user