tools: update-hwdb-autosuspend.sh: Point at HEAD, not master branch

Many Chromium projects have moved from 'master' to 'main', where
'master' is no longer updated. Point at HEAD instead, which should
always represent the default branch.

I don't actually rerun/regenerate the database, since I don't really run
systemd environments to test that update on.
This commit is contained in:
Brian Norris 2023-08-15 17:19:49 -07:00 committed by Luca Boccassi
parent 75bb2425a3
commit bd2f6a568d

View file

@ -4,7 +4,7 @@ set -eu
cd "${1:?}"
(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
| base64 -d >tools/chromiumos/gen_autosuspend_rules.py
(cat <<EOF