[ARVADOS] updated: 11699475c3d0f9c4b9d1eb50d9032a7fc5984ec9

git at public.curoverse.com git at public.curoverse.com
Thu Oct 2 14:12:57 EDT 2014


Summary of changes:
 crunch_scripts/run-command | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

       via  11699475c3d0f9c4b9d1eb50d9032a7fc5984ec9 (commit)
      from  db408055a4075188129f0c5b712e5d5a970b84c9 (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 11699475c3d0f9c4b9d1eb50d9032a7fc5984ec9
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Oct 2 14:02:21 2014 -0400

    4042: list handling bugfix

diff --git a/crunch_scripts/run-command b/crunch_scripts/run-command
index 8a9eb1a..57bf3c7 100755
--- a/crunch_scripts/run-command
+++ b/crunch_scripts/run-command
@@ -102,10 +102,10 @@ def expand_list(p, l):
     return [exp for arg in l for exp in expand_item(p, arg)]
 
 def add_to_group(gr, match):
-    m = ('^_^').join(match.groups()[1:])
+    m = ('^_^').join(match.groups())
     if m not in gr:
         gr[m] = []
-    gr[m].extend(match.group(0))
+    gr[m].append(match.group(0))
 
 def get_items(p, value):
     if isinstance(value, dict):
@@ -122,7 +122,9 @@ def get_items(p, value):
                 p = pattern.match(i)
                 if p:
                     add_to_group(groups, p)
+            print groups
             return [groups[k] for k in groups]
+
     if isinstance(value, list):
         return expand_list(p, value)
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list