[Updater] Send email with only relative path
Test: local run
Change-Id: I1924a07058524eb0bf034dae541a8171e6287f1b
diff --git a/external_updater.py b/external_updater.py
index 749fb21..5e2e944 100644
--- a/external_updater.py
+++ b/external_updater.py
@@ -129,7 +129,8 @@
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 @@
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 @@
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():