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

Unified Diff: chrome/installer/linux/common/variables.include

Issue 2107893004: Support relocatable RPM packages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: chrome/installer/linux/common/variables.include
diff --git a/chrome/installer/linux/common/variables.include b/chrome/installer/linux/common/variables.include
index be94314fe1faebfe05a9bd2d57306ab539d793fb..e7d535163624aa01b9a6777dcc261dccd2e58050 100644
--- a/chrome/installer/linux/common/variables.include
+++ b/chrome/installer/linux/common/variables.include
@@ -1,3 +1,10 @@
+# Set the installation directory at install time.
+# Currently only does anything for RPM packages.
+INSTALLDIR="@@INSTALLDIR@@"
+if [ -n "${RPM_INSTALL_PREFIX-}" ]; then
+ INSTALLDIR="${RPM_INSTALL_PREFIX}"/${INSTALLDIR##"@@INSTALLDIRPREFIX@@/"}
+fi
+
# System-wide package configuration.
DEFAULTS_FILE="/etc/default/@@PACKAGE@@"

Powered by Google App Engine
This is Rietveld 408576698