Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure curl follows redirects when downloading raw packages and fi…

…les.
  • Loading branch information...
commit 89ef89cdd3fd7bd5b1e7c94a7203b902568d694a 1 parent 4a49dd6
@VictorLowther VictorLowther authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 build_crowbar.sh
View
6 build_crowbar.sh
@@ -349,7 +349,8 @@ update_barclamp_raw_pkg_cache() {
# Fetch any raw_pkgs we were asked to.
for pkg in ${BC_RAW_PKGS["$1"]}; do
[[ -f $bc_cache/${pkg##*/} ]] && continue
- curl -o "$bc_cache/${pkg##*/}" "$pkg"
+ echo "Caching $pkg:"
+ curl -L -o "$bc_cache/${pkg##*/}" "$pkg"
done
}
@@ -363,7 +364,8 @@ update_barclamp_file_cache() {
pkg=${pkg%% *}
[[ -f $bc_cache/files/$dest/${pkg##*/} ]] && continue
mkdir -p "$bc_cache/$dest"
- curl -o "$bc_cache/$dest/${pkg##*/}" "$pkg"
+ echo "Caching $pkg:"
+ curl -L -o "$bc_cache/$dest/${pkg##*/}" "$pkg"
done < <(write_lines "${BC_EXTRA_FILES[$1]}")
}
Please sign in to comment.
Something went wrong with that request. Please try again.