]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-build-perf-report: Allow branch without hostname
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Feb 2019 13:37:06 +0000 (13:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Mar 2019 23:12:08 +0000 (23:12 +0000)
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 <richard.purdie@linuxfoundation.org>
scripts/oe-build-perf-report

index dc999c45c150cdebbcafed6ccd691552205bd203..38c0ee885d593f48b005c725ee3c15623a524724 100755 (executable)
@@ -510,10 +510,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