[Updater] Check and update all supported projects
Test: local run
Change-Id: I10b5f67144a9ec9511c8edfb609e20d0a7173647
diff --git a/notifier.py b/notifier.py
index 1e2c7cd..f82c5de 100644
--- a/notifier.py
+++ b/notifier.py
@@ -50,6 +50,9 @@
parser.add_argument(
'paths', nargs='*',
help='Paths of the project.')
+ parser.add_argument(
+ '--all', action='store_true',
+ help='Checks all projects.')
return parser.parse_args()
@@ -155,11 +158,15 @@
def _check_updates(args):
- subprocess.run(['out/soong/host/linux-x86/bin/external_updater',
- 'check',
- '--json_output', RESULT_FILE_PATH,
- '--delay', '0'] + args.paths,
- cwd=os.environ['ANDROID_BUILD_TOP'])
+ params = ['out/soong/host/linux-x86/bin/external_updater',
+ 'check', '--json_output', RESULT_FILE_PATH,
+ '--delay', '0']
+ if args.all:
+ params.append('--all')
+ else:
+ params += args.paths
+
+ subprocess.run(params, cwd=os.environ['ANDROID_BUILD_TOP'])
def main():