Update add3prf for MetadataURLValid
url field has been deprecated in favor of the identifier field.
Test: check output
Change-Id: I1d642d74f51244d59de4d5c44c4b9878873dd0d6
diff --git a/scripts/add3prf.py b/scripts/add3prf.py
index 419b8eb..c26933c 100755
--- a/scripts/add3prf.py
+++ b/scripts/add3prf.py
@@ -62,12 +62,12 @@
METADATA_CONTENT = """name: "{name}"
description: {description}
third_party {{
- url {{
- type: HOMEPAGE
+ identifier {{
+ type: "crates.io"
value: "https://crates.io/crates/{name}"
}}
- url {{
- type: ARCHIVE
+ identifier {{
+ type: "Archive"
value: "https://static.crates.io/crates/{name}/{name}-{version}.crate"
}}
version: "{version}"