summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/functions7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions
index b95879c..298c75a 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -527,7 +527,9 @@ CT_GetFile() {
esac
# Does it exist localy?
- CT_GetLocal "${file}" ${first_ext} && return 0 || true
+ if CT_GetLocal "${file}" ${first_ext}; then
+ return 0
+ fi
# No, it does not...
# Try to retrieve the file
@@ -561,9 +563,8 @@ CT_GetFile() {
done
done
- # Just warn, someone may want to catch and handle the error
+ # Just return error, someone may want to catch and handle the error
# (eg. glibc/eglibc add-ons can be missing).
- CT_DoLog WARN "Could not retrieve '${file}'."
return 1
}