diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2015-07-26 12:26:26 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-07-26 15:18:39 +0200 |
commit | 3dea23cf53258a3fa36cff6832fe193d75afdad1 (patch) | |
tree | 2b82b2f1af2390ab54ec5f0ac324e20f56e81fab | |
parent | 889a4a8d4f609f9e3c33afc8953d045255ef2b54 (diff) | |
download | buildroot-3dea23cf53258a3fa36cff6832fe193d75afdad1.tar.gz buildroot-3dea23cf53258a3fa36cff6832fe193d75afdad1.zip |
core/download: don't be needlessly verbose in backends
In 50c8b7e (support/download: support -q in all download backends), the
backend were made to respect the quietness of the main Makefile, when -s
is poassed on the 'make' command line. In doing so, they were all made
to be verbose by default.
However, the verbosity of some of the tools, like scp, is very high, and
is in fact intended for debug purposes.
Drop being verbose by default, just use whatever each tool deems normal
output. Only respect the quietness requested by the user.
Reported-by: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rwxr-xr-x | support/download/bzr | 2 | ||||
-rwxr-xr-x | support/download/cp | 5 | ||||
-rwxr-xr-x | support/download/git | 2 | ||||
-rwxr-xr-x | support/download/hg | 2 | ||||
-rwxr-xr-x | support/download/scp | 2 | ||||
-rwxr-xr-x | support/download/wget | 2 |
6 files changed, 10 insertions, 5 deletions
diff --git a/support/download/bzr b/support/download/bzr index 870ce8d079..c567466531 100755 --- a/support/download/bzr +++ b/support/download/bzr @@ -12,7 +12,7 @@ set -e # BZR : the bzr command to call -verbose=-v +verbose= while getopts :q OPT; do case "${OPT}" in q) verbose=-q;; diff --git a/support/download/cp b/support/download/cp index 132cad7280..6e29eef1ec 100755 --- a/support/download/cp +++ b/support/download/cp @@ -11,7 +11,12 @@ set -e # Environment: # LOCALFILES: the cp command to call +# 'cp' usually does not print anything on its stdout, whereas the +# other download backends, even if not verbose, at least print some +# progress information. +# Make 'cp' verbose by default, so it behaves a bit like the others. verbose=-v + while getopts :q OPT; do case "${OPT}" in q) verbose=;; diff --git a/support/download/git b/support/download/git index fd5f5392dd..0e6103b648 100755 --- a/support/download/git +++ b/support/download/git @@ -11,7 +11,7 @@ set -e # Environment: # GIT : the git command to call -verbose=-v +verbose= while getopts :q OPT; do case "${OPT}" in q) verbose=-q; exec >/dev/null;; diff --git a/support/download/hg b/support/download/hg index f6880fafc4..d6654a1fb6 100755 --- a/support/download/hg +++ b/support/download/hg @@ -11,7 +11,7 @@ set -e # Environment: # HG : the hg command to call -verbose=-v +verbose= while getopts :q OPT; do case "${OPT}" in q) verbose=-q;; diff --git a/support/download/scp b/support/download/scp index 3d6876ffbc..1a62f30a2f 100755 --- a/support/download/scp +++ b/support/download/scp @@ -11,7 +11,7 @@ set -e # Environment: # SCP : the scp command to call -verbose=-v +verbose= while getopts :q OPT; do case "${OPT}" in q) verbose=-q;; diff --git a/support/download/wget b/support/download/wget index 7eb21a4733..885bcf14ff 100755 --- a/support/download/wget +++ b/support/download/wget @@ -11,7 +11,7 @@ set -e # Environment: # WGET : the wget command to call -verbose=-v +verbose= while getopts :q OPT; do case "${OPT}" in q) verbose=-q;; |