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
Reviewed: https:/ /review. opendev. org/c/starlingx /update/ +/869855 /opendev. org/starlingx/ update/ commit/ 2b172c641a00c9c 935333bcc944a44 7299bcbf32
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 2b172c641a00c9c 935333bcc944a44 7299bcbf32
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 e51b92d3527b341 2a13ba9b7c5
Signed-off-by: Jessica Castelino <email address hidden>
Change-Id: I6c7a255fef3934