From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Sfu9i-00082C-Qu for garchives@archives.gentoo.org; Sat, 16 Jun 2012 14:39:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B8A2E05FA; Sat, 16 Jun 2012 14:39:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4CFFFE05FA for ; Sat, 16 Jun 2012 14:39:06 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B25C51B401F for ; Sat, 16 Jun 2012 14:39:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7F184E5430 for ; Sat, 16 Jun 2012 14:39:04 +0000 (UTC) From: "Diego Elio Pettenò" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Diego Elio Pettenò" Message-ID: <1339857516.91956ecb040a90128e4578ac7072679b7a760cf7.flameeyes@gentoo> Subject: [gentoo-commits] proj/flameeyes-tinderbox:master commit in: / X-VCS-Repository: proj/flameeyes-tinderbox X-VCS-Files: bashrc X-VCS-Directories: / X-VCS-Committer: flameeyes X-VCS-Committer-Name: Diego Elio Pettenò X-VCS-Revision: 91956ecb040a90128e4578ac7072679b7a760cf7 X-VCS-Branch: master Date: Sat, 16 Jun 2012 14:39:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 248a6d1b-cb12-40f6-b834-dd96c7f3e963 X-Archives-Hash: a13bbd2c9b520f99b4933529a1e66b1f commit: 91956ecb040a90128e4578ac7072679b7a760cf7 Author: Diego Elio Petten=C3=B2 flameeyes eu> AuthorDate: Sat Jun 16 14:38:36 2012 +0000 Commit: Diego Elio Petten=C3=B2 gentoo org> CommitDate: Sat Jun 16 14:38:36 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/flameeyes-tin= derbox.git;a=3Dcommit;h=3D91956ecb No-op on log sending when the analysis address is unset. --- bashrc | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bashrc b/bashrc index 6ad45d3..f84bb64 100755 --- a/bashrc +++ b/bashrc @@ -41,10 +41,14 @@ tinderbox_stats() { fi } =20 -tinderbox_send_log() { - tar cf - "${PORTAGE_LOG_FILE}" | \ - nc6 --send-only --hold-timeout=3D0 ${TINDERBOX_ANALYSIS_ADDR} -} +if [[ -n "${TINDERBOX_ANALYSIS_ADDR}" ]]; then + tinderbox_send_log() { + tar cf - "${PORTAGE_LOG_FILE}" | \ + nc6 --send-only --hold-timeout=3D0 ${TINDERBOX_ANALYSIS_ADDR} + } +else + tinderbox_send_log() { :; } +fi =20 tinderbox_success() { dent_me "${CATEGORY}/${PF} merge #succeded$(tinderbox_stats)"