From: Joey Hess Date: Sun, 16 Aug 2009 15:36:47 +0000 (-0400) Subject: Set User-Agent to "mr" when downloading the mrconfig file with mr bootstrap. Closes... X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/06180cb797cbacf3be3fe8ae3165aefbbc3ab18e?ds=sidebyside;hp=-c Set User-Agent to "mr" when downloading the mrconfig file with mr bootstrap. Closes: #541778 --- 06180cb797cbacf3be3fe8ae3165aefbbc3ab18e diff --git a/debian/changelog b/debian/changelog index f3570d6..5beff8b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mr (0.43) UNRELEASED; urgency=low + + * Set User-Agent to "mr" when downloading the mrconfig file + with mr bootstrap. Closes: #541778 + + -- Joey Hess Sun, 16 Aug 2009 11:36:03 -0400 + mr (0.42) unstable; urgency=low * Add support for ~/.mrtrust, which can be used to list trusted mrconfig diff --git a/mr b/mr index 94e9720..f9c4bf0 100755 --- a/mr +++ b/mr @@ -1324,7 +1324,7 @@ sub bootstrap { die "mr: .mrconfig file already exists, not overwriting with $url\n"; } - if (system("curl", "-s", $url, "-o", ".mrconfig") != 0) { + if (system("curl", "-A", "mr", "-s", $url, "-o", ".mrconfig") != 0) { die "mr: download of $url failed\n"; }