Skip to content

Commit 382966f

Browse files
ralf-at-androidAndroid Git Automerger
authored andcommitted
am 47605d1: Merge "SDK Repository: switch to sdk addon revision 6."
* commit '47605d10f9647d21c3b350e944fe0d0f5efdc4e6': SDK Repository: switch to sdk addon revision 6.
2 parents d496950 + 47605d1 commit 382966f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build/tools/mk_sdk_repo_xml.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,18 @@ ATTRS=(
139139
# Starting with XSD repo-7 and addon-5, some revision elements are no longer just
140140
# integers. Instead they are in major.minor.micro.preview format. This defines
141141
# which elements. This depends on the XSD root element and the XSD version.
142+
#
143+
# Note: addon extra revision can't take a preview number. We don't enforce
144+
# this in this script. Instead schema validation will fail if the extra
145+
# source.property declares an RC and it gets inserted in the addon.xml here.
142146

143147
if [[ "$ROOT" == "sdk-repository" && "$XSD_VERSION" -ge 7 ]] ||
144148
[[ "$ROOT" == "sdk-addon" && "$XSD_VERSION" -ge 5 ]]; then
145149
FULL_REVISIONS=(
146150
tool revision
147151
build-tool revision
148152
platform-tool revision
153+
extra revision
149154
@ min-tools-rev
150155
@ min-platform-tools-rev
151156
)
@@ -177,7 +182,7 @@ function needs_full_revision() {
177182
}
178183

179184
# Parses and print a full revision in the form "1.2.3 rc4".
180-
# Note that the format requires to have a # space before the
185+
# Note that the format requires to have 1 space before the
181186
# optional "rc" (e.g. '1 rc4', not '1rc4') and no space after
182187
# the rc (so not '1 rc 4' either)
183188
function write_full_revision() {

0 commit comments

Comments
 (0)