James Valleroy 29d48e86b7
setup: Try force upgrade before running app setup
Avoid running setup if it would bypass a needed force upgrade.

Fixes: #2397

Tests:

- Rerun setup on an app and see that there are no errors.

- Install modified freedombox on bookworm and perform dist-upgrade to
  testing. Then rerun setup on Firewall app. It fails with the message "App
  firewall failed to force upgrade." firewalld package is not upgraded.

- Modify Firewall app to allow force upgrade to latest version. Then rerun
  setup on Firewall app. firewalld is successfully force upgraded.

  NOTE: In this case, Firewall setup is run twice, once by force upgrade, and
  again by rerun setup.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-02-15 19:47:41 -05:00
..
2024-02-12 20:40:56 -05:00
2024-02-12 21:24:48 -05:00
2023-08-23 21:47:39 -04:00
2023-10-30 22:09:00 -07:00
2021-09-20 16:50:37 -04:00
2023-09-25 20:03:24 -04:00
2023-09-25 20:03:24 -04:00