postrm revision 868fa2fe829687343ffae624259930155e16dbd8
1#!/bin/sh 2# 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. 6 7action="$1" 8 9# Only do complete clean-up on purge. 10if [ "$action" != "purge" ] ; then 11 exit 0 12fi 13 14@@include@@../common/apt.include 15 16@@include@@../common/symlinks.include 17 18remove_udev_symlinks 19 20# Only remove the defaults file if it is not empty. An empty file was probably 21# put there by the sysadmin to disable automatic repository configuration, as 22# per the instructions on the package download page. 23if [ -s "$DEFAULTS_FILE" ]; then 24 # Make sure the package defaults are removed before the repository config, 25 # otherwise it could result in the repository config being removed, but the 26 # package defaults remain and are set to not recreate the repository config. 27 # In that case, future installs won't recreate it and won't get auto-updated. 28 rm "$DEFAULTS_FILE" || exit 1 29fi 30# Remove any Google repository added by the package. 31clean_sources_lists 32