Add ICU message format support
[chromium-blink-merge.git] / chrome / installer / linux / debian / postrm
blob85b9961013ff276c13810d32ec8d927859abba37
1 #!/bin/sh
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
5 # found in the LICENSE file.
7 set -e
9 action="$1"
11 # Only do complete clean-up on purge.
12 if [ "$action" != "purge" ] ; then
13 exit 0
16 @@include@@../common/apt.include
18 @@include@@../common/symlinks.include
20 remove_udev_symlinks
22 # Only remove the defaults file if it is not empty. An empty file was probably
23 # put there by the sysadmin to disable automatic repository configuration, as
24 # per the instructions on the package download page.
25 if [ -s "$DEFAULTS_FILE" ]; then
26 # Make sure the package defaults are removed before the repository config,
27 # otherwise it could result in the repository config being removed, but the
28 # package defaults remain and are set to not recreate the repository config.
29 # In that case, future installs won't recreate it and won't get auto-updated.
30 rm "$DEFAULTS_FILE" || exit 1
32 # Remove any Google repository added by the package.
33 clean_sources_lists