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:
Yann E. MORIN" 2008-08-12 07:47:19 +00:00
parent 59ef10f5d6
commit 5c18ddd8b9

View File

@ -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.