From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 19 Aug 2024 22:04:08 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sg8bo-00BLky-2I for lore@lore.pengutronix.de; Mon, 19 Aug 2024 22:04:08 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sg8bo-0007ir-5o; Mon, 19 Aug 2024 22:04:08 +0200 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1sg8bb-0007ih-78 for ptxdist@pengutronix.de; Mon, 19 Aug 2024 22:03:56 +0200 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5bed83487aeso3466410a12.2 for ; Mon, 19 Aug 2024 13:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724097834; x=1724702634; darn=pengutronix.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lMVUEsmgaT2RTtkC2BV/IUz2bIqwGJyBtYW7K7QrbpI=; b=i7/3ac/KJ3rnVKGzZMFpFpZsV7V0TQWC3Kzr2rvFxb9jlp/+hYGxxKtIhneFywW8U0 Zd1LbJCwbfLTFphQJ+E3cfzA7Cd3jFCSKOJekPmaWhmz80N7dU0K0n2qGiZhMeXuhrPa 3+vCC4LHIjS4hiH3o7PK5PXFzkI/s9g4xti7sWNxWOqMfOwb+eeGr2cb6EErloqOdX7G Ro+XGlTV8U6O5OCJjZlKyCyNBVytFbVipbXVWtHm8dcQSkfgEHVUGUVy4OESyo5qqtvL /SxhugknS9VGNg+FxdXGYKA7VHVN0xnWSkDgZRsox2wWPvoY9LDBuEgi0QjGCsRiNF4S AjeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724097834; x=1724702634; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lMVUEsmgaT2RTtkC2BV/IUz2bIqwGJyBtYW7K7QrbpI=; b=IthLTWoHDSMWvmd4yubUJxODwwfzxilGNwRKMgRWq9cJnsbU4JWtI5hlH6x3yzPLdz 1SlLUXnX1ECZauzvbuTPxPqkN+K8ZQ0MkFBFWSorPVLJB6xvmTbAqfoBBd8UiG6KqOP9 uy3oOPEeMix8F19Gluta2UZOoSLmSP/KC9ZNXvwgUeTHV5ZpOi/VVKxnIq7sSiSij8WI Xp67ccJ07fHiQeuAsV0aYlSxyoXNTt7UFnv6qpt3X6oRbayh9IFvZOFsFDFQT4GDJM6a Omh/yXN1Er9bqzWadMHPPFMGzr8ZCMwBUyGyCePYwCq4LpXslUBGfSJUJzEKP/s1qm53 2iAA== X-Gm-Message-State: AOJu0YxpHbw4GHlR+3kmDjG3sicr4yrTrl+46LGpBZrC3ftHDz+Jx9NG sg6mW5CCkIg2Ek/Tu2cS8LPU8lnLejSLBehOBXm+yxdDX8noxeYQ4SDs/g== X-Google-Smtp-Source: AGHT+IElFhTsDvnr0g9jCBKTEYmTDPWmz7Ql0xX1JFZoaAv4zDRXLmm83ZlRHtVPk0ClSAbHQkqx3w== X-Received: by 2002:aa7:c54d:0:b0:5a4:6dec:cd41 with SMTP id 4fb4d7f45d1cf-5beca76e4ebmr6704218a12.28.1724097833812; Mon, 19 Aug 2024 13:03:53 -0700 (PDT) Received: from stormwind.tux.internal (85.191.78.244.dynamic.dhcp.aura-net.dk. [85.191.78.244]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5becf1f3442sm4490025a12.31.2024.08.19.13.03.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 13:03:53 -0700 (PDT) From: Bruno Thomsen To: ptxdist@pengutronix.de Date: Mon, 19 Aug 2024 22:03:49 +0200 Message-ID: <20240819200349.28458-1-bruno.thomsen@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v2] ptxd_make_get: verbose on wget X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Bruno Thomsen Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Change wget progress to none when verbose is chosen, so it's possible to see download URLs. Tested on GNU Wget2 2.1.0 (Fedora 40) and GNU Wget 1.21.4 (Ubuntu 24.04). Signed-off-by: Bruno Thomsen --- scripts/lib/ptxd_make_get.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh index 4951abe5abf1..eea56f8afbab 100644 --- a/scripts/lib/ptxd_make_get.sh +++ b/scripts/lib/ptxd_make_get.sh @@ -94,7 +94,11 @@ ptxd_make_get_http() { return elif [ ! -e "${path}" ]; then temp_file="$(mktemp "${path}.XXXXXXXXXX")" || ptxd_bailout "failed to create tempfile" - if [ -n "${PTXDIST_QUIET}" ]; then + if [ "${PTXDIST_VERBOSE}" == "1" ]; then + if wget --version | grep "GNU Wget2"; then + progress=none + fi + elif [ -n "${PTXDIST_QUIET}" ]; then progress=dot else progress=bar:force base-commit: e16ba2b3690107c5b42109f6808c49912049be22 -- 2.46.0