Fix of previous patch
This populates args.file
Bug: 72552006
Test: ./update_current.py -s someBuildId
Change-Id: Ied5065dab485a0a60accfdfb0b69b77f95034143
diff --git a/update_current.py b/update_current.py
index bb80208..7607f55 100755
--- a/update_current.py
+++ b/update_current.py
@@ -477,6 +477,7 @@
def getBuildId(args):
source = args.source
if source.isnumeric():
+ args.file = False
return int(args.source)
else:
raise Exception('Updating this set of prebuilts requires <source> to be a numeric build id, not "' + source + '"')
@@ -505,6 +506,7 @@
'-b', '--buildtools', action="store_true",
help='If specified, updates only the Build Tools')
args = parser.parse_args()
+args.file = True
if not args.source:
parser.error("You must specify a build ID or local Maven ZIP file")
sys.exit(1)