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 D3F7E158128 for ; Tue, 17 Jun 2025 03:01:21 +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 BD9FE342622 for ; Tue, 17 Jun 2025 03:01:21 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0D60311052A; Tue, 17 Jun 2025 03:00:54 +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 0369D1104D9 for ; Tue, 17 Jun 2025 03:00:53 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B54933425A2 for ; Tue, 17 Jun 2025 03:00:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 262B629F5 for ; Tue, 17 Jun 2025 03:00:50 +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: <1750129243.2c5a54de9f0e9f182ff41c3f0fae5fbab65afe58.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: 2c5a54de9f0e9f182ff41c3f0fae5fbab65afe58 X-VCS-Branch: master Date: Tue, 17 Jun 2025 03:00:50 +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: e4376cb1-a887-4581-a88b-d60c6edc12d6 X-Archives-Hash: 5f1fb489b0da9dd6562a4cd933d7b26b commit: 2c5a54de9f0e9f182ff41c3f0fae5fbab65afe58 Author: Kerin Millar plushkava net> AuthorDate: Tue Jun 17 01:56:11 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 17 03:00:43 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=2c5a54de emerge-webrsync: drop the argv0 variable It serves no purpose whatsoever. Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/emerge-webrsync | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index 31f710145d..f49763ba36 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -624,18 +624,18 @@ do_latest_snapshot() { # Opportunistically use gentoo-functions for nicer output functions_script="${EPREFIX}/lib/gentoo/functions.sh" source "${functions_script}" || { - echo "${argv0}: Could not source ${functions_script}!" 1>&2 + echo "$0: Could not source ${functions_script}!" 1>&2 einfo() { - echo "${argv0##*/}: $*" + echo "${0##*/}: $*" } ewarn() { - echo "${argv0##*/}: warning: $*" 1>&2 + echo "${0##*/}: warning: $*" 1>&2 } eerror() { - echo "${argv0##*/}: error: $*" 1>&2 + echo "${0##*/}: error: $*" 1>&2 } } @@ -650,8 +650,6 @@ die() { exit 1 } -argv0=$0 - # Use emerge and portageq from the same directory/prefix as the current script, # so that we don't have to rely on PATH including the current EPREFIX. emerge=$(PATH="${BASH_SOURCE[0]%/*}:${PATH}" type -P emerge)