Lindley Vieira 000050b151 Check before deleting old deployments
When the Software Agent starts, it lists all ostree deployments, and
deletes all with an index greater than 2 in the list. But it does not
check the list size before trying to delete, leading in some cases to
an out-of-range exception.

This commit adds a check before iterating through the list to delete.

Test-Plan:
PASS: Deploy an ISO and check no out-of-range error after unlock
PASS: Deploy an RR patch and see only two deployments after unlock

Story: 2010676
Task: 51069

Change-Id: I2555597fac30677bcb36629a2ea66feb52a40de1
Signed-off-by: Lindley Vieira <lindley.vieira@windriver.com>
2024-09-24 10:13:26 -03:00
2024-06-17 10:06:20 -03:00
2019-04-19 19:52:36 +00:00
2018-05-31 07:37:12 -07:00
2019-07-19 10:28:00 -04:00
2018-07-25 08:48:07 -05:00
2024-01-10 19:26:20 +00:00

stx-update

StarlingX Software Management

Description
StarlingX Installation/Update/Patching/Backup/Restore
Readme 16 MiB
Languages
Python 93.2%
Shell 5.3%
HTML 1.1%
Makefile 0.4%