From: Richard Purdie Date: Fri, 8 Feb 2019 13:37:06 +0000 (+0000) Subject: oe-build-perf-report: Allow branch without hostname X-Git-Tag: 2018-10.4-thud~224 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=b162c70dd6e926e1700553e27b41eb1c12ee2dce;p=openembedded-core.git oe-build-perf-report: Allow branch without hostname Allow the branch to be set without the hostname option. Previously if hostname wasn't set, branch would be overwritten regardless of whether it was set or not. (From OE-Core rev: 3ec43bf4c6c8f7730a67f63ad4e14903f289014e) Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report index 0bd05f44ef..c91f74192b 100755 --- a/scripts/oe-build-perf-report +++ b/scripts/oe-build-perf-report @@ -512,10 +512,10 @@ def auto_args(repo, args): key = split[0] val = split[1].strip() - if key == 'hostname': + if key == 'hostname' and not args.hostname: log.debug("Using hostname %s", val) args.hostname = val - elif key == 'branch': + elif key == 'branch' and not args.branch: log.debug("Using branch %s", val) args.branch = val