summaryrefslogtreecommitdiffstats
path: root/chrome/installer/linux
diff options
context:
space:
mode:
authorrmcilroy <rmcilroy@chromium.org>2014-12-12 07:19:22 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-12 15:19:38 +0000
commitacb1e62d00c4bd2b2d55d32d87800b3600ca5d99 (patch)
treece60f7c1e3a1a39c30266906278ae3400d82d3e0 /chrome/installer/linux
parentfd85200868d990525942516352b12b9da25c6ddd (diff)
downloadchromium_src-acb1e62d00c4bd2b2d55d32d87800b3600ca5d99.zip
chromium_src-acb1e62d00c4bd2b2d55d32d87800b3600ca5d99.tar.gz
chromium_src-acb1e62d00c4bd2b2d55d32d87800b3600ca5d99.tar.bz2
Check that V8 snapshot files exist before including them in the installer.
BUG=441258 Review URL: https://codereview.chromium.org/790233003 Cr-Commit-Position: refs/heads/master@{#308087}
Diffstat (limited to 'chrome/installer/linux')
-rw-r--r--chrome/installer/linux/common/installer.include6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/installer/linux/common/installer.include b/chrome/installer/linux/common/installer.include
index 4af55a8..81bb746 100644
--- a/chrome/installer/linux/common/installer.include
+++ b/chrome/installer/linux/common/installer.include
@@ -138,8 +138,10 @@ stage_install_common() {
# V8 snapshot files; only necessary when v8_use_external_startup_data is
# set to 1 in build/common.gypi.
- install -m 644 "${BUILDDIR}/natives_blob.bin" "${STAGEDIR}/${INSTALLDIR}/"
- install -m 644 "${BUILDDIR}/snapshot_blob.bin" "${STAGEDIR}/${INSTALLDIR}/"
+ if [ -f "${BUILDDIR}/natives_blob.bin" ]; then
+ install -m 644 "${BUILDDIR}/natives_blob.bin" "${STAGEDIR}/${INSTALLDIR}/"
+ install -m 644 "${BUILDDIR}/snapshot_blob.bin" "${STAGEDIR}/${INSTALLDIR}/"
+ fi
# sandbox
# Rename sandbox binary with hyphen instead of underscore because that's what