util/update_public_suffix_list.sh: adapt to PURL addition to qt_attribution.json
Also add a comment to publicsuffix-list's entry that the update is done by a script that should be updated whenever this file's contents change. Amends 36dca3c04f759449f74008a3e79021a179b0f35e. Pick-to: 6.8 6.5 Change-Id: I1a0e51568e6d4300197c09f759ad3d82277a74d1 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit b9f74f9a0b97588fc07d75fa6a427f5c8d6a2c6c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
cd99c6aad5
commit
94e4f3c532
1
src/3rdparty/libpsl/qt_attribution.json
vendored
1
src/3rdparty/libpsl/qt_attribution.json
vendored
@ -20,6 +20,7 @@ supported by Qt (by the QNetworkCookieJar class).",
|
||||
"Comment": "Consult https://github.com/publicsuffix/list for the sha1 but download from ...",
|
||||
"Homepage": "http://publicsuffix.org/",
|
||||
"Comment": "Suggested update schedule: twice per year (before a 6.x.0 release), no relevant CPE found",
|
||||
"Comment": "Updated by util/update_public_suffix_list.sh; if you add fields here, update the script, too!",
|
||||
"Version": "903a83ff7bfc3148e3692e09396f9f3bdc9462ef, fetched on 2024-06-05",
|
||||
"DownloadLocation": "https://publicsuffix.org/list/public_suffix_list.dat",
|
||||
"PURL": "pkg:generic/psl-data@903a83ff7bfc3148e3692e09396f9f3bdc9462ef?download_url=https://publicsuffix.org/list/public_suffix_list.dat",
|
||||
|
@ -63,6 +63,9 @@ run_or_die "$MAKE_DAFSA" --output-format=binary "$INPUT" "$PUBLIC_SUFFIX_LIST_DA
|
||||
# update the first Version line in qt_attribution.json with the new SHA1 and date:
|
||||
run_or_die sed -i -e "1,/\"Version\":/{ /\"Version\":/ { s/[0-9a-fA-F]\{40\}/$GITSHA1/; s/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}/$TODAY/ } }" "$ATTRIBUTION_JSON"
|
||||
|
||||
# update the first "PURL" line with the new SHA1:
|
||||
run_or_die sed -i -e "1,/\"PURL\":/{ /\"PURL\":/ { s/[0-9a-fA-F]\{40\}/$GITSHA1/; } }" "$ATTRIBUTION_JSON"
|
||||
|
||||
run_or_die git add "$PSL_DATA_CPP"
|
||||
run_or_die git add "$PUBLIC_SUFFIX_LIST_DAFSA"
|
||||
run_or_die git add "$ATTRIBUTION_JSON"
|
||||
|
Loading…
x
Reference in New Issue
Block a user