[gnome-continuous] vcs: Add -L to curl to follow redirects
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] vcs: Add -L to curl to follow redirects
- Date: Fri, 29 Nov 2013 14:28:49 +0000 (UTC)
commit 77569313f6d415af081fe294fb663c837e2a7a74
Author: Colin Walters <walters verbum org>
Date: Fri Nov 29 09:28:22 2013 -0500
vcs: Add -L to curl to follow redirects
And -v for good measure. This should fix downloading tarballs from
sourceforge.
src/js/vcs.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/js/vcs.js b/src/js/vcs.js
index 7a50cca..8ce104f 100644
--- a/src/js/vcs.js
+++ b/src/js/vcs.js
@@ -337,7 +337,7 @@ function _ensureVcsMirrorTarball(mirrordir, name, uri, checksum, cancellable, pa
let tmpPath = mirrordir.get_child('tarball-' + name);
GSystem.shutil_rm_rf(tmpPath, cancellable);
GSystem.file_ensure_directory(tmpPath.get_parent(), true, cancellable);
- ProcUtil.runSync(['curl', '-o', tmpPath.get_path(), uri], cancellable,
+ ProcUtil.runSync(['curl', '-L', '-v', '-o', tmpPath.get_path(), uri], cancellable,
{ logInitiation: true });
// And verify the checksum
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]