[ARVADOS] updated: e05e4cd6106b83aa21ef45a3d6537b89d7f67498

git at public.curoverse.com git at public.curoverse.com
Mon Feb 17 14:04:53 EST 2014


Summary of changes:
 sdk/cli/bin/arv              |    2 +-
 sdk/python/bin/arv-ls        |    2 +-
 sdk/python/bin/arv-normalize |   24 ++++++++++++++++++++++++
 3 files changed, 26 insertions(+), 2 deletions(-)
 create mode 100755 sdk/python/bin/arv-normalize

       via  e05e4cd6106b83aa21ef45a3d6537b89d7f67498 (commit)
       via  da939284a2a57dd046422b75a0c4700a5ff4f223 (commit)
      from  444af0ae1f9b9d36af72e57ae508cd0608988236 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit e05e4cd6106b83aa21ef45a3d6537b89d7f67498
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Feb 17 14:06:00 2014 -0500

    Added arv keep normalized

diff --git a/sdk/cli/bin/arv b/sdk/cli/bin/arv
index 957a6f3..89dee69 100755
--- a/sdk/cli/bin/arv
+++ b/sdk/cli/bin/arv
@@ -36,7 +36,7 @@ case ARGV[0]
 when 'keep'
   ARGV.shift
   @sub = ARGV.shift
-  if ['get', 'put', 'ls'].index @sub then
+  if ['get', 'put', 'ls', 'normalize'].index @sub then
     # Native Arvados
     exec `which arv-#{@sub}`.strip, *ARGV
   elsif ['less', 'check'].index @sub then

commit da939284a2a57dd046422b75a0c4700a5ff4f223
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Feb 17 14:05:48 2014 -0500

    Added arv-normalize

diff --git a/sdk/python/bin/arv-ls b/sdk/python/bin/arv-ls
index b2fe02d..9cfd5e4 100755
--- a/sdk/python/bin/arv-ls
+++ b/sdk/python/bin/arv-ls
@@ -15,7 +15,7 @@ parser = argparse.ArgumentParser(
 
 parser.add_argument('locator', type=str,
                     help="""
-Collection locator, optionally with a file path or prefix.
+Collection locator
 """)
 
 parser.add_argument('-s', action='store_true', help="""List file sizes, in KiB.""")
diff --git a/sdk/python/bin/arv-normalize b/sdk/python/bin/arv-normalize
new file mode 100755
index 0000000..0a0adbe
--- /dev/null
+++ b/sdk/python/bin/arv-normalize
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+
+import argparse
+import hashlib
+import os
+import re
+import string
+import sys
+import logging
+
+logger = logging.getLogger(os.path.basename(sys.argv[0]))
+
+parser = argparse.ArgumentParser(
+    description='Normalize contents of a manifest')
+
+args = parser.parse_args()
+
+import arvados
+
+r = sys.stdin.read()
+    
+cr = arvados.CollectionReader(r)
+
+print cr.manifest_text()

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list