From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B3A50138A1A for ; Tue, 3 Feb 2015 21:39:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77E10E0995; Tue, 3 Feb 2015 21:39:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A784E0995 for ; Tue, 3 Feb 2015 21:39:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D704634079D for ; Tue, 3 Feb 2015 21:39:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9122F10FDC for ; Tue, 3 Feb 2015 21:39:25 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1422999547.c96c0540abf25e14d865ab9fcfd22b3e5748c901.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/emerge-webrsync X-VCS-Directories: bin/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: c96c0540abf25e14d865ab9fcfd22b3e5748c901 X-VCS-Branch: master Date: Tue, 3 Feb 2015 21:39:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 52f0f3c4-fc41-4dab-8afe-4cb517da656a X-Archives-Hash: 0ee2a7b5c7496398af914f9128c167c9 commit: c96c0540abf25e14d865ab9fcfd22b3e5748c901 Author: Brian Dolbec gentoo org> AuthorDate: Tue Feb 3 21:39:07 2015 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Tue Feb 3 21:39:07 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c96c0540 bin/emerge-webrsync: Fix my flawed logic for the rsync/websync check Thanks to Zac for spotting my logic error. --- bin/emerge-webrsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index e2b4e00..a603280 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -501,7 +501,7 @@ main() { # This is a sanity check to help prevent people like funtoo users # from accidentally wiping out their git tree. - if [[ -n ${repo_sync_type} && ( ${repo_sync_type} != rsync || ${repo_sync_type} != websync ) ]] ; then + if [[ -n ${repo_sync_type} && ${repo_sync_type} != rsync && ${repo_sync_type} != websync ]] ; then echo "The current sync-type attribute of repository 'gentoo' is not set to 'rsync' or 'websync':" >&2 echo >&2 echo " sync-type=${repo_sync_type}" >&2