OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # | 2 # |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
| 7 set -e |
| 8 |
7 action="$1" | 9 action="$1" |
8 if [ "$2" = "in-favour" ]; then | 10 if [ "$2" = "in-favour" ]; then |
9 # Treat conflict remove as an upgrade. | 11 # Treat conflict remove as an upgrade. |
10 action="upgrade" | 12 action="upgrade" |
11 fi | 13 fi |
12 # Don't clean-up just for an upgrade.` | 14 # Don't clean-up just for an upgrade.` |
13 if [ "$action" = "upgrade" ] ; then | 15 if [ "$action" = "upgrade" ] ; then |
14 exit 0 | 16 exit 0 |
15 fi | 17 fi |
16 | 18 |
17 @@include@@../common/prerm.include | 19 @@include@@../common/prerm.include |
18 | 20 |
19 # Remove from the alternatives system | 21 # Remove from the alternatives system |
20 update-alternatives --remove x-www-browser /usr/bin/@@USR_BIN_SYMLINK_NAME@@ | 22 update-alternatives --remove x-www-browser /usr/bin/@@USR_BIN_SYMLINK_NAME@@ |
21 update-alternatives --remove gnome-www-browser /usr/bin/@@USR_BIN_SYMLINK_NAME@@ | 23 update-alternatives --remove gnome-www-browser /usr/bin/@@USR_BIN_SYMLINK_NAME@@ |
22 | 24 |
23 update-alternatives --remove google-chrome /usr/bin/@@USR_BIN_SYMLINK_NAME@@ | 25 update-alternatives --remove google-chrome /usr/bin/@@USR_BIN_SYMLINK_NAME@@ |
OLD | NEW |