From bb3a281db61b9cf059f8a6492c2fd02e9fc9c19d Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Mon, 15 Jan 2018 16:45:31 +0000 Subject: [PATCH] setup-config: add a 5th parameter to take the repo name This will likely be useful in several places and is require for buildhistory configuration. Signed-off-by: Joshua Lock --- scripts/setup-config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/setup-config b/scripts/setup-config index a92961f..6bd2dda 100755 --- a/scripts/setup-config +++ b/scripts/setup-config @@ -6,6 +6,7 @@ # $2 - The autobuilder step number (a given target can run multiple steps with different configurations) # $3 - The target build directory to configure # $4 - The poky branch name the build is running on +# $5 - The name of the repository the build is running on # import json @@ -14,8 +15,8 @@ import sys import subprocess import errno -if len(sys.argv) != 5: - print("Incorrect number of parameters, please call as %s ") +if len(sys.argv) != 6: + print("Incorrect number of parameters, please call as %s ") sys.exit(1) # Strip off "nightly-" @@ -23,6 +24,7 @@ target = sys.argv[1][8:] stepnum = sys.argv[2] builddir = sys.argv[3] branchname = sys.argv[4] +reponame = sys.argv[5] scriptsdir = os.path.dirname(os.path.realpath(__file__))