[oe-commits] [openembedded-core] 01/02: oe-build-perf-report: Allow branch without hostname

git at git.openembedded.org git at git.openembedded.org
Fri Feb 8 14:05:08 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 8115c1e9b88fa0d79089ab9c2aa31c6b4c5b3b92
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Feb 8 13:37:06 2019 +0000

    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.
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 scripts/oe-build-perf-report | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 0bd05f4..c91f741 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

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list