mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
Be a little less verbose when retrieving files if they are already present.
Be a little less verbose when extracting (and patching) files. /trunk/scripts/functions | 7 2 5 0 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
This commit is contained in:
parent
59ef10f5d6
commit
5c18ddd8b9
@ -445,8 +445,6 @@ CT_GetFile() {
|
||||
;;
|
||||
esac
|
||||
|
||||
CT_DoLog EXTRA "Retrieving '${file}'"
|
||||
|
||||
# Do we already have it?
|
||||
ext=$(CT_GetFileExtension "${file}" ${first_ext})
|
||||
if [ -n "${ext}" ]; then
|
||||
@ -455,6 +453,7 @@ CT_GetFile() {
|
||||
fi
|
||||
|
||||
# Try to retrieve the file
|
||||
CT_DoLog EXTRA "Retrieving '${file}'"
|
||||
CT_Pushd "${CT_TARBALLS_DIR}"
|
||||
|
||||
if [ -n "${CT_LOCAL_TARBALLS_DIR}" ]; then
|
||||
@ -570,7 +569,7 @@ CT_ExtractAndPatch() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
CT_DoLog EXTRA "Extracting '${file}'"
|
||||
CT_DoLog EXTRA "Extracting and patching '${file}'"
|
||||
case "${ext}" in
|
||||
.tar.bz2) CT_DoExecLog ALL tar xvjf "${full_file}";;
|
||||
.tar.gz|.tgz) CT_DoExecLog ALL tar xvzf "${full_file}";;
|
||||
@ -593,8 +592,6 @@ CT_ExtractAndPatch() {
|
||||
|
||||
# Kludge: outside this function, we wouldn't know if we had just extracted
|
||||
# a libc addon, or a plain package. Apply patches now.
|
||||
CT_DoLog EXTRA "Patching '${file}'"
|
||||
|
||||
if [ "${libc_addon}" = "y" ]; then
|
||||
# Some addon tarballs directly contain the correct addon directory,
|
||||
# while others have the addon directory named after the tarball.
|
||||
|
Loading…
Reference in New Issue
Block a user