Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: chrome/installer/linux/debian/postrm

Issue 2107893004: Support relocatable RPM packages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7 set -e
8 8
9 action="$1" 9 action="$1"
10 10
11 # Only do complete clean-up on purge. 11 # Only do complete clean-up on purge.
12 if [ "$action" != "purge" ] ; then 12 if [ "$action" != "purge" ] ; then
13 exit 0 13 exit 0
14 fi 14 fi
15 15
16 @@include@@../common/variables.include
17
16 @@include@@../common/apt.include 18 @@include@@../common/apt.include
17 19
18 @@include@@../common/symlinks.include 20 @@include@@../common/symlinks.include
19 21
22 remove_chrome_symlinks
20 remove_udev_symlinks 23 remove_udev_symlinks
21 24
22 # Only remove the defaults file if it is not empty. An empty file was probably 25 # 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 26 # put there by the sysadmin to disable automatic repository configuration, as
24 # per the instructions on the package download page. 27 # per the instructions on the package download page.
25 if [ -s "$DEFAULTS_FILE" ]; then 28 if [ -s "$DEFAULTS_FILE" ]; then
26 # Make sure the package defaults are removed before the repository config, 29 # Make sure the package defaults are removed before the repository config,
27 # otherwise it could result in the repository config being removed, but the 30 # 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. 31 # 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. 32 # In that case, future installs won't recreate it and won't get auto-updated.
30 rm "$DEFAULTS_FILE" || exit 1 33 rm "$DEFAULTS_FILE" || exit 1
31 fi 34 fi
32 # Remove any Google repository added by the package. 35 # Remove any Google repository added by the package.
33 clean_sources_lists 36 clean_sources_lists
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698