From 5cae899be6a818ead67da1a4eb3326540a53600f Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Sat, 19 Oct 2013 15:46:31 +0300 Subject: Extract hwpack type in multi-configuration projects Signed-off-by: Fathi Boudra --- lava-submit.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lava-submit.py b/lava-submit.py index 41cc996..0345e7a 100755 --- a/lava-submit.py +++ b/lava-submit.py @@ -143,7 +143,11 @@ def main(): if hwpack_type.startswith('pre-built-images-'): hwpack_type = hwpack_type[(len('pre-built-images-')):] if '=' in hwpack_type: - hwpack_type = hwpack_type[(len('pre-built-images/hwpack=')):] + hwpack_type = hwpack_type[(len('pre-built-images/')):] + ret_split = dict( + token.split('=') for token in hwpack_type.split(',')) + hwpack_type = ret_split['hwpack'] + # Rootfs type, default is developer rootfs_type = os.getenv('ROOTFS_TYPE', 'developer') -- cgit v1.2.3