aboutsummaryrefslogtreecommitdiffstats
path: root/community/cargo/tests-fix-build-auth-http_auth_offered.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-10-30 03:06:30 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-10-30 03:06:30 +0000
commitcedebe77358c26c7c10604d0471797b793b806e6 (patch)
tree606202d7b29e86e613e07b13fa3b5affa405e41c /community/cargo/tests-fix-build-auth-http_auth_offered.patch
parent7e133c449cf05ee4f88e003de33b9fa20e2152c5 (diff)
downloadaports-cedebe77358c26c7c10604d0471797b793b806e6.tar.bz2
aports-cedebe77358c26c7c10604d0471797b793b806e6.tar.xz
Revert "community/cargo: upgrade to 0.22.0"
This change causes the package to be unbuildable without manual intervention, which violates policy. Reverting the change is theoretically harmless, as the old cargo has not been removed from the archive. This reverts commit c6e8dbdbd42fc99d297045cf6bd0e3d9474e53ad.
Diffstat (limited to 'community/cargo/tests-fix-build-auth-http_auth_offered.patch')
-rw-r--r--community/cargo/tests-fix-build-auth-http_auth_offered.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/community/cargo/tests-fix-build-auth-http_auth_offered.patch b/community/cargo/tests-fix-build-auth-http_auth_offered.patch
deleted file mode 100644
index 8543c2897e..0000000000
--- a/community/cargo/tests-fix-build-auth-http_auth_offered.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From: Jakub Jirutka <jakub@jirutka.cz>
-Date: Thu, 13 Aug 2016 14:47:00 +0200
-Last-Updated: Sat, 28 Oct 2017 14:59:00 +0200
-Subject: [PATCH] Fix test build-auth:http_auth_offered
-
-The test fails because of hard-coded libgit2 version, that may not be
-the same as actually used libgit2...
-
---- a/tests/build-auth.rs
-+++ b/tests/build-auth.rs
-@@ -20,7 +20,7 @@
- let addr = server.local_addr().unwrap();
-
- fn headers(rdr: &mut BufRead) -> HashSet<String> {
-- let valid = ["GET", "Authorization", "Accept", "User-Agent"];
-+ let valid = ["GET", "Authorization", "Accept"];
- rdr.lines().map(|s| s.unwrap())
- .take_while(|s| s.len() > 2)
- .map(|s| s.trim().to_string())
-@@ -33,11 +33,6 @@
- let t = thread::spawn(move|| {
- let mut conn = BufStream::new(server.accept().unwrap().0);
- let req = headers(&mut conn);
-- let user_agent = if cfg!(windows) {
-- "User-Agent: git/1.0 (libgit2 0.25.0)"
-- } else {
-- "User-Agent: git/2.0 (libgit2 0.25.0)"
-- };
- conn.write_all(b"\
- HTTP/1.1 401 Unauthorized\r\n\
- WWW-Authenticate: Basic realm=\"wheee\"\r\n
-@@ -46,7 +41,6 @@
- assert_eq!(req, vec![
- "GET /foo/bar/info/refs?service=git-upload-pack HTTP/1.1",
- "Accept: */*",
-- user_agent,
- ].into_iter().map(|s| s.to_string()).collect());
- drop(conn);
-
-@@ -61,7 +55,6 @@
- "GET /foo/bar/info/refs?service=git-upload-pack HTTP/1.1",
- "Authorization: Basic Zm9vOmJhcg==",
- "Accept: */*",
-- user_agent,
- ].into_iter().map(|s| s.to_string()).collect());
- });
-