diff options
author | borenet <borenet@google.com> | 2015-04-06 13:19:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-06 13:19:26 -0700 |
commit | dfaebfba4296cb8d790aafa8a6023a8e54a2b7ff (patch) | |
tree | 5aee9c82f908699ade3e7a3b7ed11d2202f6fb3c | |
parent | 08b3249494782cc401ab1cac57ef4d8e560ed11d (diff) |
Remove get_uploaded hashes
Replaced with an inline script in
https://codereview.chromium.org/1068503002/
BUG=skia:3521
Review URL: https://codereview.chromium.org/1062873002
-rw-r--r-- | tools/get_uploaded_hashes.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tools/get_uploaded_hashes.py b/tools/get_uploaded_hashes.py deleted file mode 100644 index 0ea7c02ca5..0000000000 --- a/tools/get_uploaded_hashes.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python - -# Copyright 2015 Google Inc. -# -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - - -import os -import subprocess -import sys - -sys.path.insert(0, os.path.join('common', 'py', 'utils')) -import gs_utils - - -def get_uploaded_hashes(gs_bucket, gs_dir): - _, files = gs_utils.GSUtils().list_bucket_contents(gs_bucket, subdir=gs_dir) - hashes = [] - for line in files: - hashes.append(os.path.basename(line).split('.')[0]) - return hashes - - -def main(gs_bucket, gs_dir, output_file): - hashes = get_uploaded_hashes(gs_bucket, gs_dir) - with open(output_file, 'w') as f: - for h in hashes: - f.write(h + '\n') - - -if __name__ == '__main__': - if len(sys.argv) != 4: - print >> sys.stderr , ('Usage: %s <gs_bucket> <gs_subdir> <output_file>' % - sys.argv[0]) - sys.exit(1) - main(*sys.argv[1:]) |