summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer')
-rwxr-xr-xchrome/installer/mac/keystone_install.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/installer/mac/keystone_install.sh b/chrome/installer/mac/keystone_install.sh
index c7cc570..24609d2 100755
--- a/chrome/installer/mac/keystone_install.sh
+++ b/chrome/installer/mac/keystone_install.sh
@@ -379,6 +379,15 @@ ksadmin_supports_brandpath_brandkey() {
# return value.
}
+# Returns 0 (true) if ksadmin supports --version-path and --version-key.
+ksadmin_supports_versionpath_versionkey() {
+ # --version-path and --version-key were introduced in Keystone 1.0.9.2318.
+ is_ksadmin_version_ge 1.0.9.2318
+
+ # The return value of is_ksadmin_version_ge is used as this function's
+ # return value.
+}
+
usage() {
echo "usage: ${ME} update_dmg_mount_point" >& 2
}
@@ -1076,6 +1085,13 @@ main() {
)
fi
+ if ksadmin_supports_versionpath_versionkey; then
+ ksadmin_args+=(
+ --version-path "${installed_app_plist_path}"
+ --version-key "${KS_VERSION_KEY}"
+ )
+ fi
+
note "ksadmin_args = ${ksadmin_args[*]}"
if ! ksadmin "${ksadmin_args[@]}"; then