From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C1192158128 for ; Tue, 17 Jun 2025 23:42:23 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id AA805341B29 for ; Tue, 17 Jun 2025 23:42:23 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 4AC2D1104E2; Tue, 17 Jun 2025 23:42:15 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 446CB1104E2 for ; Tue, 17 Jun 2025 23:42:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C2B9F34164C for ; Tue, 17 Jun 2025 23:42:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3299B29ED for ; Tue, 17 Jun 2025 23:42:13 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1750203648.d9debbbd3a2b3d88b76ee9b38550ae2c3f889fd3.sam@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: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d9debbbd3a2b3d88b76ee9b38550ae2c3f889fd3 X-VCS-Branch: master Date: Tue, 17 Jun 2025 23:42:13 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c75abe26-37f9-4f62-852a-415afcf80702 X-Archives-Hash: ce04fe80fed2059fc97f52accfc8a5a1 commit: d9debbbd3a2b3d88b76ee9b38550ae2c3f889fd3 Author: Kerin Millar plushkava net> AuthorDate: Tue Jun 17 22:46:20 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 17 23:40:48 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d9debbbd emerge-webrsync: reduce three test expressions to just one in main() Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/emerge-webrsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index 221a167bcb..6d6dd254e9 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -76,7 +76,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} != webrsync ]] ; then + if [[ ${repo_sync_type} != @(''|rsync|webrsync) ]]; then eerror "The current sync-type attribute of repository 'gentoo' is not set to 'rsync' or 'webrsync':" eerror eerror " sync-type=${repo_sync_type}"