Comment 2 for bug 2002437

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to update (master)

Reviewed: https://review.opendev.org/c/starlingx/update/+/869855
Committed: https://opendev.org/starlingx/update/commit/2b172c641a00c9c935333bcc944a447299bcbf32
Submitter: "Zuul (22348)"
Branch: master

commit 2b172c641a00c9c935333bcc944a447299bcbf32
Author: Jessica Castelino <email address hidden>
Date: Tue Jan 10 21:28:01 2023 +0000

    Fix: Patch Remove Order

    When we remove a patch, we want the patch removal order to be
    such that the patch with the highest dependency is removed first.
    For example:
    P2 requires P1
    P3 requires P2
    P4 requires P3
    Removal order: [P4, P3, P2, P1]
    Since P4 has the highest dependencies (P3, P2, P1) followed by
    P3 (P2, P1) followed by P2 (P1) and P1 (None).

    Test Plan:
    Tested different scenarios with unit test cases

    Closes-Bug: 2002437
    Signed-off-by: Jessica Castelino <email address hidden>
    Change-Id: I6c7a255fef3934e51b92d3527b3412a13ba9b7c5