Just print a warning when package removal goes sideways
Signed-off-by: Cole Robinson <crobinso(a)redhat.com>
---
convert/convert_linux.ml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/convert/convert_linux.ml b/convert/convert_linux.ml
index 08a4a9de..5dfeff90 100644
--- a/convert/convert_linux.ml
+++ b/convert/convert_linux.ml
@@ -139,7 +139,11 @@ let convert (g : G.guestfs) source inspect i_firmware _
keep_serial_console _ =
| Guest_packages.Unimplemented_package_manager msg ->
error "%s" msg
in
- ignore (g#sh cmd);
+ (try ignore (g#sh cmd)
+ with G.Error msg ->
+ warning (f_"could not uninstall packages ā%sā: %s (ignored)")
+ (String.concat " " pkgs) msg
+ )
)
in
--
2.48.1