Comment 3 for bug 2060436

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (f/kernel-6.6)

Reviewed: https://review.opendev.org/c/starlingx/root/+/916966
Committed: https://opendev.org/starlingx/root/commit/4b7b091d44b4d434c959ee84da8d3d0f531931dc
Submitter: "Zuul (22348)"
Branch: f/kernel-6.6

commit 4b7b091d44b4d434c959ee84da8d3d0f531931dc
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:
    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>