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

Unified Diff: chrome_linux/installer/debian/postinst

Issue 33333002: Roll Linux reference build to official build 30.0.1599.33 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/reference_builds/
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_linux/installer/debian/expected_deps ('k') | chrome_linux/installer/debian/postrm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_linux/installer/debian/postinst
===================================================================
--- chrome_linux/installer/debian/postinst (revision 0)
+++ chrome_linux/installer/debian/postinst (revision 0)
@@ -0,0 +1,64 @@
+#!/bin/sh
+#
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+@@include@@../common/postinst.include
+
+# Add to the alternatives system
+#
+# On Ubuntu 12.04, we have the following priorities
+# (which can be obtain be installing browsers and running
+# update-alternatives --query x-www-browser):
+#
+# /usr/bin/epiphany-browser 85
+# /usr/bin/firefox 40
+# /usr/bin/konqueror 30
+#
+# While we would expect these values to be keyed off the most popular
+# browser (Firefox), in practice, we treat Epiphany as the lower bound,
+# resulting in the following scheme:
+
+CHANNEL=@@CHANNEL@@
+case $CHANNEL in
+ stable )
+ # Good enough to be the default.
+ PRIORITY=200
+ ;;
+ beta )
+ # Almost good enough to be the default. (Firefox stable should arguably be
+ # higher than this, but since that's below the "Epiphany threshold", we're
+ # not setting our priority below it. Anyone want to poke Firefox to raise
+ # their priority?)
+ PRIORITY=150
+ ;;
+ unstable )
+ # Unstable, give it the "lowest" priority.
+ PRIORITY=120
+ ;;
+ * )
+ PRIORITY=0
+ ;;
+esac
+
+update-alternatives --install /usr/bin/x-www-browser x-www-browser \
+ /usr/bin/@@PACKAGE@@ $PRIORITY
+update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser \
+ /usr/bin/@@PACKAGE@@ $PRIORITY
+
+@@include@@../common/apt.include
+
+@@include@@../common/symlinks.include
+
+remove_udev_symlinks
+add_udev_symlinks
+
+## MAIN ##
+if [ ! -e "$DEFAULTS_FILE" ]; then
+ echo 'repo_add_once="true"' > "$DEFAULTS_FILE"
+ echo 'repo_reenable_on_distupgrade="true"' >> "$DEFAULTS_FILE"
+fi
+
+# Run the cron job immediately to perform repository configuration.
+nohup sh /etc/cron.daily/@@PACKAGE@@ > /dev/null 2>&1 &
Property changes on: chrome_linux/installer/debian/postinst
___________________________________________________________________
Added: svn:executable
+ *
« no previous file with comments | « chrome_linux/installer/debian/expected_deps ('k') | chrome_linux/installer/debian/postrm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698