Skip to content
Snippets Groups Projects
Commit 38dda433 authored by Haibo Huang's avatar Haibo Huang
Browse files

[Updater] Send email with only relative path

Test: local run
Change-Id: I1924a07058524eb0bf034dae541a8171e6287f1b
parent 46f2705f
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,8 @@ def _process_update_result(path):
def _check_some(paths, delay):
results = {}
for path in paths:
results[path] = _process_update_result(path)
relative_path = fileutils.get_relative_project_path(path)
results[relative_path] = _process_update_result(path)
time.sleep(delay)
return results
......@@ -141,7 +142,8 @@ def _check_all(delay):
if fileutils.METADATA_FILENAME in files:
# Skip sub directories.
dirs[:] = []
results[path] = _process_update_result(path)
relative_path = fileutils.get_relative_project_path(path)
results[relative_path] = _process_update_result(path)
time.sleep(delay)
return results
......@@ -204,7 +206,7 @@ def _do_update(args):
git_utils.push(full_path, args.remote_name)
if args.branch_and_commit:
git_utils.checkout(full_path, 'aosp/master')
git_utils.checkout(full_path, args.remote_name + '/master')
def parse_args():
......
......@@ -134,7 +134,7 @@ def send_notification(args):
_process_results(args, history, results)
with open(args.history, 'w') as f:
json.dump(history, f, sort_keys=True)
json.dump(history, f, sort_keys=True, indent=4)
def _upgrade(proj):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment