Commit e53ce79
committed
bootc-ubuntu-setup: Check if packages exist before removal
The arm64 runners from Arm Limited don't have all the same packages
as x86_64 runners (e.g. google-chrome-stable). This caused apt-get
remove to fail with exit code 100.
Fix by checking with dpkg -l before attempting removal. Also switch
from regex patterns to globs since both apt and dpkg support fnmatch
globs, avoiding the need for pattern conversion.
Assisted-by: OpenCode (Claude claude-opus-4-5@20251101)
Signed-off-by: Colin Walters <walters@verbum.org>1 parent 1bdf943 commit e53ce79
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
0 commit comments