From patchwork Mon Nov 24 13:57:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 413736 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 9341E140180 for ; Tue, 25 Nov 2014 00:57:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C5C82924D6; Mon, 24 Nov 2014 13:57:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LELKp9hw14g2; Mon, 24 Nov 2014 13:57:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 9695392501; Mon, 24 Nov 2014 13:57:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 5C0221C2236 for ; Mon, 24 Nov 2014 13:57:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 58B852F750 for ; Mon, 24 Nov 2014 13:57:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jb-0-6PKalzm for ; Mon, 24 Nov 2014 13:57:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by silver.osuosl.org (Postfix) with ESMTPS id 74B6C2F6A2 for ; Mon, 24 Nov 2014 13:57:12 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id l15so5745136wiw.8 for ; Mon, 24 Nov 2014 05:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qX45bHjeXekH4tPhTfqbxiSNR/Q/Z12s5zbehl55jtE=; b=cn2EptrQLhlt+LOgC9BCvjx8CG1e9EBdi362jTGBph43vslx4Xl63VRiz2iNRpB+zs nIIbVIyqWJ8l7Pl7IVh/fdV3izBiv66guq7wOeqy17uqUxkVoRrNv2GN54/28W96v7rk XS5pMYL8oUme/unBDh8JcuhFxrogJt+oObxPidJvnqHRjTBhSI1uCVh6XWtdLkYw3fjs X1wFj9vYgXfxGJmOvQ3WvmYe/Sza0086w958gKnGIH+P6YyXUEDd2VaMAoQ5cu9xLiZH 1JNq+/Fwl/g7CY0lAewzOjrCemh39GGcGSn9zeBKJuz3ln+qVS+PN1C9V5DQBiAbic1+ o+Ow== X-Received: by 10.180.91.36 with SMTP id cb4mr12968849wib.30.1416837430938; Mon, 24 Nov 2014 05:57:10 -0800 (PST) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id mc10sm12114313wic.24.2014.11.24.05.57.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 05:57:10 -0800 (PST) From: Fabio Porcedda To: buildroot@uclibc.org Date: Mon, 24 Nov 2014 14:57:02 +0100 Message-Id: <1416837422-1977-6-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1416837422-1977-1-git-send-email-fabio.porcedda@gmail.com> References: <1416837422-1977-1-git-send-email-fabio.porcedda@gmail.com> Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH v4 next 5/5] support/download: pass the quiet flag to the scp download helper X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" To be coherent to others download helper, instead of adding the "QUIET" variable to the "SCP" variable, pass the "QUIET" variable to the scp download helper. Signed-off-by: Fabio Porcedda --- Notes: v4: - add this patch package/pkg-download.mk | 5 +++-- support/download/scp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package/pkg-download.mk b/package/pkg-download.mk index 074488d..7b9e260 100644 --- a/package/pkg-download.mk +++ b/package/pkg-download.mk @@ -14,7 +14,7 @@ export CVS := $(call qstrip,$(BR2_CVS)) export BZR := $(call qstrip,$(BR2_BZR)) export GIT := $(call qstrip,$(BR2_GIT)) export HG := $(call qstrip,$(BR2_HG)) -export SCP := $(call qstrip,$(BR2_SCP)) $(QUIET) +export SCP := $(call qstrip,$(BR2_SCP)) SSH := $(call qstrip,$(BR2_SSH)) $(QUIET) export LOCALFILES := $(call qstrip,$(BR2_LOCALFILES)) @@ -175,7 +175,8 @@ define DOWNLOAD_SCP test -e $(DL_DIR)/$(2) || \ $(EXTRA_ENV) support/download/wrapper scp \ $(DL_DIR)/$(2) \ - '$(call stripurischeme,$(call qstrip,$(1)))' && \ + '$(call stripurischeme,$(call qstrip,$(1)))' \ + $(QUIET) && \ $(call VERIFY_HASH,$(PKGDIR)/$($(PKG)_NAME).hash,$(DL_DIR)/$(2)) endef diff --git a/support/download/scp b/support/download/scp index f3e92f3..cdcf71b 100755 --- a/support/download/scp +++ b/support/download/scp @@ -12,5 +12,6 @@ set -e output="${1}" url="${2}" +quiet="${3}" -${SCP} "${url}" "${output}" +${SCP} ${quiet} "${url}" "${output}"