From fca9fb631455f518ae828b36c0fe355a3c8c0665 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 13 Dec 2009 13:05:27 -0500 Subject: [PATCH 1/1] Pass -L to curl to allow it to follow redirects when bootstrapping. (Pavel Avgustinov) --- debian/changelog | 7 +++++++ mr | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.39.5