Commit cd966ec4 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Fix outdated comment in install-build-deps.sh.

In https://crrev.com/651373, the package_exists() implementation changed
but the comment did not reflect this change.

Change-Id: Ic13e7a3cef28a980ebd167af1bab31006bbf5b59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2375928Reviewed-by: default avatarThomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801469}
parent 6d7a1ad1
......@@ -52,8 +52,8 @@ package_exists() {
echo "Call build_apt_package_list() prior to calling package_exists()" >&2
apt_package_list=$(build_apt_package_list)
fi
# 'apt-cache search' takes a regex string, so eg. the +'s in packages like
# "libstdc++" need to be escaped.
# `grep` takes a regex string, so the +'s in package names, e.g. "libstdc++",
# need to be escaped.
local escaped="$(echo $1 | sed 's/[\~\+\.\:-]/\\&/g')"
[ ! -z "$(grep "^${escaped}$" <<< "${apt_package_list}")" ]
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment