Browse code

Ignore errors when uninstalling a pkg with zypper

I.e. when trying to uninstall python-pip and it's not installed,
don't exit.

Change-Id: I21ac715a0090ad01811af47f23c61823dfa65629

Thomas Bechtold authored on 2016/03/05 00:06:24
Showing 1 changed files
... ...
@@ -1286,7 +1286,7 @@ function uninstall_package {
1286 1286
     elif is_fedora; then
1287 1287
         sudo ${YUM:-yum} remove -y "$@" ||:
1288 1288
     elif is_suse; then
1289
-        sudo zypper rm "$@"
1289
+        sudo zypper rm "$@" ||:
1290 1290
     else
1291 1291
         exit_distro_not_supported "uninstalling packages"
1292 1292
     fi