diff options
author | Miao Wang <miaowang@google.com> | 2016-11-28 19:54:23 -0800 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2016-11-28 19:54:35 -0800 |
commit | 2c86c2c7adf6f8e788c9904c323a525707203d6c (patch) | |
tree | 91c91b5e579d834014ae8e0b652f4842bc001f18 /build_rs.py | |
parent | 77201248cc67847ba9a0e097d6718a93aec2f87f (diff) | |
download | rs-2c86c2c7adf6f8e788c9904c323a525707203d6c.tar.gz |
Do not bundle repo.prop with RS prebuilts.
Test: manual
Change-Id: Ia132e2c0b08724aba0642b0f1dbdc9589c57d3bd
Diffstat (limited to 'build_rs.py')
-rwxr-xr-x | build_rs.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/build_rs.py b/build_rs.py index d75a4143..41fe1429 100755 --- a/build_rs.py +++ b/build_rs.py @@ -118,7 +118,6 @@ def install_toolchain(build_dir, install_dir, host): install_clang_headers(build_dir, install_dir, host) install_built_device_files(build_dir, install_dir, host) install_license_files(install_dir) - install_repo_prop(install_dir) def install_built_host_files(build_dir, install_dir, host): @@ -285,23 +284,6 @@ def install_license_files(install_dir): notice_file.write('\n'.join(notices)) -def install_repo_prop(install_dir): - file_name = 'repo.prop' - - dist_dir = os.environ.get('DIST_DIR') - if dist_dir is not None: - dist_repo_prop = os.path.join(dist_dir, file_name) - shutil.copy(dist_repo_prop, install_dir) - else: - out_file = os.path.join(install_dir, file_name) - with open(out_file, 'w') as prop_file: - cmd = [ - 'repo', 'forall', '-c', - 'echo $REPO_PROJECT $(git rev-parse HEAD)', - ] - subprocess.check_call(cmd, stdout=prop_file) - - def parse_args(): parser = argparse.ArgumentParser() |