summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Gaston <jeffrygaston@google.com>2018-04-25 17:02:02 -0400
committerJeff Gaston <jeffrygaston@google.com>2018-04-25 20:03:06 -0400
commitb6e3ba9039ff827e2287dc37974c30645db4d6e7 (patch)
tree71c691e107bcf624184b05bb5f1ce04d85936b8f
parent3eb3bfcc7babc8bce565787ac48dcfedb5a12871 (diff)
downloadsdk-b6e3ba9039ff827e2287dc37974c30645db4d6e7.tar.gz
Add argument for updating SL, app toolkit, and Androidx at once
Also remove existing arguments to prevent users from accidentally only updating a subset of them Bug: 76088091 Test: ./update_prebuilts.py --stx <build_id> Change-Id: I1436bb43a1cca337a806e64994d3868897760088 Merged-In: I1436bb43a1cca337a806e64994d3868897760088
-rwxr-xr-xupdate_prebuilts/update_prebuilts.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/update_prebuilts/update_prebuilts.py b/update_prebuilts/update_prebuilts.py
index 4fecd7df9..d5cfc722a 100755
--- a/update_prebuilts/update_prebuilts.py
+++ b/update_prebuilts/update_prebuilts.py
@@ -804,18 +804,9 @@ parser.add_argument(
'-c', '--constraint', action="store_true",
help='If specified, updates only Constraint Layout')
parser.add_argument(
- '-s', '--support', action="store_true",
- help='If specified, updates only the Support Library')
-parser.add_argument(
- '-x', '--androidx', action="store_true",
- help='If specified, updates only AndroidX')
-parser.add_argument(
'-j', '--jetifier', action="store_true",
help='If specified, updates only Jetifier')
parser.add_argument(
- '-t', '--toolkit', action="store_true",
- help='If specified, updates only the App Toolkit')
-parser.add_argument(
'-p', '--platform', action="store_true",
help='If specified, updates only the Android Platform')
parser.add_argument(
@@ -825,9 +816,16 @@ parser.add_argument(
'-b', '--buildtools', action="store_true",
help='If specified, updates only the Build Tools')
parser.add_argument(
+ '--stx', action="store_true",
+ help='If specified, updates Support Library, Androidx, and App Toolkit (that is, all artifacts built from frameworks/support)')
+parser.add_argument(
'--commit-first', action="store_true",
help='If specified, then if uncommited changes exist, commit before continuing')
args = parser.parse_args()
+if args.stx:
+ args.support = args.toolkit = args.androidx = True
+else:
+ args.support = args.toolkit = args.androidx = False
args.file = True
if not args.source:
parser.error("You must specify a build ID or local Maven ZIP file")