From: Joey Hess Date: Sun, 13 Dec 2009 18:05:27 +0000 (-0500) Subject: Pass -L to curl to allow it to follow redirects when bootstrapping. (Pavel Avgustinov) X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/fca9fb631455f518ae828b36c0fe355a3c8c0665?hp=8c7de1139db31314694cc5218a1cf93337f16ac2 Pass -L to curl to allow it to follow redirects when bootstrapping. (Pavel Avgustinov) --- diff --git a/debian/changelog b/debian/changelog index 8ba4159..ca820b5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mr (0.47) UNRELEASED; urgency=low + + * Pass -L to curl to allow it to follow redirects when bootstrapping. + (Pavel Avgustinov) + + -- Joey Hess Sun, 13 Dec 2009 13:04:53 -0500 + mr (0.46) unstable; urgency=low * Avoid using abs_path to determine canonical repo path, as that fails diff --git a/mr b/mr index 1a57570..0bf6655 100755 --- a/mr +++ b/mr @@ -1359,7 +1359,7 @@ sub bootstrap { eval q{use File::Temp}; die $@ if $@; my $tmpconfig=File::Temp->new(); - my @curlargs = ("curl", "-A", "mr", "-s", $url, "-o", $tmpconfig); + my @curlargs = ("curl", "-A", "mr", "-L", "-s", $url, "-o", $tmpconfig); push(@curlargs, "-k") if $insecure; my $curlstatus = system(@curlargs); die "mr bootstrap: invalid SSL certificate for $url (consider -k)\n" if $curlstatus >> 8 == 60;