packages/.github/workflows
Jeffery To f0d5e470e1
CI: Add --autoremove, ignore removal errors
836b4e1c73 added
--force-removal-of-dependent-packages but it does not do what the commit
message says it does.

When package A depends on package B (package B is a dependency of
package A; package A is a dependent of package B), trying to remove
package B while package A is installed will result in an error. Adding
--force-removal-of-dependent-packages in this case will cause the
removal of package B and package A (package B's dependent).

But in the case of the CI testing step, it is package A that is being
installed and removed. Removing package A with
--force-removal-of-dependent-packages will not cause package B (package
A's dependency) to be removed.

This adds --autoremove to actually remove the package's dependencies.

This also ignores any errors returned by opkg remove as --autoremove can
sometimes falsely return an error[1].

[1]: https://github.com/openwrt/openwrt/issues/12241

Fixes: 836b4e1c73 ("github-ci: add --force-removal-of-dependent-packages")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-03-22 11:48:22 +08:00
..
check-autorelease-deprecation.yml ci: only comment AUTORELEASE deprecation if exists 2022-12-02 19:59:44 +01:00
ci_helpers.sh CI: Add helper functions 2020-10-10 11:16:13 -10:00
Dockerfile CI: use new openwrt Docker username 2021-03-17 22:20:16 -10:00
entrypoint.sh CI: Add --autoremove, ignore removal errors 2023-03-22 11:48:22 +08:00
formal.yml ci: update github actions to v3 2022-10-25 22:13:24 +02:00
multi-arch-test-build.yml CI: update build architectures 2023-03-13 11:03:53 +01:00