From 56b39126853ff47525c89c7ba3c02422a639ddc3 Mon Sep 17 00:00:00 2001 From: "Gary W. Smith" Date: Wed, 16 Nov 2016 22:03:43 -0800 Subject: [PATCH] Use -y on zypper remove to avoid hanging When using zypper remove, include the -y option to avoid stack.sh from hanging waiting for user confirmation. Due to output buffering, the script could hang before giving the user the prompt to enter Y to continue, making it unclear why the script was hanging. Change-Id: I5ea761e5ae0829439953c385f8e7d0546acba886 Closes-Bug: 1642736 --- functions-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions-common b/functions-common index 8e14b5ec7b..d5014fd80a 100644 --- a/functions-common +++ b/functions-common @@ -1318,7 +1318,7 @@ function uninstall_package { elif is_fedora; then sudo ${YUM:-yum} remove -y "$@" ||: elif is_suse; then - sudo zypper rm "$@" ||: + sudo zypper remove -y "$@" ||: else exit_distro_not_supported "uninstalling packages" fi