When python yaml module loads meta_data.yaml into a dict
with 'yaml.full_load', it discards trailing zeros in the
'debver' that has two digits before the decimal point,
and followed by a trailing zero after the decimal point.
For example, if the 'debver' in meta_data.yaml is '23.10',
the version in debrepack is '23.1' which will cause build
failure.
Test Plan:
Pass: The fix should not impact the normal build build-pkgs -a
Pass: Add new package 'mlnx-ofed-kernel_23.10' with 'debver'
in meta_data.yaml is '23.10': build-pkgs -c -p mlnx-ofed-kernel
Closes-bug: 2060436
Change-Id: I33042f1d15440e72ad8a4b33061390f7dbb9bb64
Signed-off-by: Haiqing Bai <email address hidden>
[Cherry pick from https://review.opendev.org/c/starlingx/root/+/915251]
Signed-off-by: Jiping Ma <email address hidden>
Reviewed: https:/ /review. opendev. org/c/starlingx /root/+ /916966 /opendev. org/starlingx/ root/commit/ 4b7b091d44b4d43 4c959ee84da8d3d 0f531931dc
Committed: https:/
Submitter: "Zuul (22348)"
Branch: f/kernel-6.6
commit 4b7b091d44b4d43 4c959ee84da8d3d 0f531931dc
Author: Haiqing Bai <email address hidden>
Date: Mon Apr 8 15:16:09 2024 +0800
debrepack: Fixed debver inconsistent issue
When python yaml module loads meta_data.yaml into a dict
with 'yaml.full_load', it discards trailing zeros in the
'debver' that has two digits before the decimal point,
and followed by a trailing zero after the decimal point.
For example, if the 'debver' in meta_data.yaml is '23.10',
the version in debrepack is '23.1' which will cause build
failure.
Test Plan:
build- pkgs -a
Pass: The fix should not impact the normal build
Pass: Add new package 'mlnx-ofed- kernel_ 23.10' with 'debver'
build- pkgs -c -p mlnx-ofed-kernel
in meta_data.yaml is '23.10':
Closes-bug: 2060436
Change-Id: I33042f1d15440e 72ad8a4b3306139 0f7dbb9bb64 /review. opendev. org/c/starlingx /root/+ /915251]
Signed-off-by: Haiqing Bai <email address hidden>
[Cherry pick from https:/
Signed-off-by: Jiping Ma <email address hidden>