I have attached the patch for the packaging system.
The documentation is available at : http://test.kernel.org/autotest/PackagingSystem

Signed-off-by: Ashwin Ganti <aganti@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1953 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/control_file.py b/frontend/afe/control_file.py
index 3a76e26..49572d7 100644
--- a/frontend/afe/control_file.py
+++ b/frontend/afe/control_file.py
@@ -86,6 +86,10 @@
 
 def get_tests_stanza(tests, is_server, prepend=[], append=[]):
     raw_control_files = [read_control_file(test) for test in tests]
+    return _get_tests_stanza(raw_control_files, is_server, prepend, append)
+
+
+def _get_tests_stanza(raw_control_files, is_server, prepend, append):
     if is_server:
         return '\n'.join(raw_control_files)
     raw_steps = prepend + [add_boilerplate_to_nested_steps(step)
diff --git a/frontend/afe/rpc_utils.py b/frontend/afe/rpc_utils.py
index 2773886..ac175f0 100644
--- a/frontend/afe/rpc_utils.py
+++ b/frontend/afe/rpc_utils.py
@@ -102,6 +102,10 @@
 
 
 def get_consistent_value(objects, field):
+    if not objects:
+        # well a list of nothing is consistent
+        return None
+
     value = getattr(objects[0], field)
     for obj in objects:
         this_value = getattr(obj, field)