meson: Fix build with three-component version numbers
Otherwise: include/meson.build:5:0: ERROR: Index 3 out of bounds of array of size 3. Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
		
							parent
							
								
									531e1648fc
								
							
						
					
					
						commit
						4191b59bd5
					
				|  | @ -2,7 +2,11 @@ version_split = meson.project_version().split('.') | |||
| major = version_split[0].to_int() | ||||
| minor = version_split[1].to_int() | ||||
| patch = version_split[2].to_int() | ||||
| subpatch = version_split[3].to_int() | ||||
| if version_split.length() == 4 | ||||
|     subpatch = version_split[3].to_int() | ||||
| else | ||||
|     subpatch = 0 | ||||
| endif | ||||
| 
 | ||||
| release = major * 10000000 + minor * 100000 + patch * 1000 + subpatch | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue