[ARVADOS] updated: a1a1aed711dec0676575bd914cbe1356f7c0bb03

git at public.curoverse.com git at public.curoverse.com
Tue Mar 17 13:32:03 EDT 2015


Summary of changes:
 sdk/python/arvados/commands/arv_copy.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

       via  a1a1aed711dec0676575bd914cbe1356f7c0bb03 (commit)
      from  d8abf0b06cc38a1e1030e04966d0cb616eae8c2e (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 a1a1aed711dec0676575bd914cbe1356f7c0bb03
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Tue Mar 17 13:35:42 2015 -0400

    When copying a collection that already exists on the destination, fetch
    manifest text from the destination in order to create a new collection with the
    correct signing tokens.  closes #5475

diff --git a/sdk/python/arvados/commands/arv_copy.py b/sdk/python/arvados/commands/arv_copy.py
index 9e6d431..75f8ca9 100755
--- a/sdk/python/arvados/commands/arv_copy.py
+++ b/sdk/python/arvados/commands/arv_copy.py
@@ -506,7 +506,9 @@ def copy_collection(obj_uuid, src, dst, args):
                     (c.get('name') == d['name']) and
                     (c['portable_data_hash'] == d['portable_data_hash'])):
                     return d
-
+            c['manifest_text'] = dst.collections().get(
+                uuid=dstcol['items'][0]['uuid']
+            ).execute(num_retries=args.retries)['manifest_text']
             return create_collection_from(c, src, dst, args)
 
     # Fetch the collection's manifest.

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list