From 084664b95a892e37c1403914f1ebd2781dd3b9d9 Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Tue, 26 Oct 2021 13:27:21 +0900 Subject: [PATCH] Add OWNERS to vndk snapshot directories Copy the OWNERS in this directory to the VNDK snapshot prebuilt directories to protect the snapshots from random updates. Bug: 202780389 Test: generate snapshots Change-Id: I778616762ee017f87c771fbf6628887178fda86f --- vndk/snapshot/OWNERS | 1 + vndk/snapshot/update.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/vndk/snapshot/OWNERS b/vndk/snapshot/OWNERS index 29987394f..219175d88 100644 --- a/vndk/snapshot/OWNERS +++ b/vndk/snapshot/OWNERS @@ -1,3 +1,4 @@ andrewhsieh@google.com inseob@google.com +jiyong@google.com justinyun@google.com diff --git a/vndk/snapshot/update.py b/vndk/snapshot/update.py index cb973ea51..2d68c31b0 100644 --- a/vndk/snapshot/update.py +++ b/vndk/snapshot/update.py @@ -165,6 +165,9 @@ def update_buildfiles(buildfile_generator): logging.info('Generating Android.bp files...') buildfile_generator.generate_android_bp() +def copy_owners(install_dir): + path = os.path.dirname(__file__) + shutil.copy(os.path.join(path, 'OWNERS'), install_dir) def check_gpl_license(license_checker): try: @@ -272,6 +275,8 @@ def main(): buildfile_generator = GenBuildFile(install_dir, vndk_version) update_buildfiles(buildfile_generator) + copy_owners(install_dir) + if not local: license_checker = GPLChecker(install_dir, ANDROID_BUILD_TOP, temp_artifact_dir, args.remote)