1 |
commit: a7b1646a5f13406ed819213b2dcb2e614e22437e |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Sun Sep 26 10:23:56 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 26 11:26:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7b1646a |
7 |
|
8 |
dev-ruby/net-scp: remove unused patch(es) |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/22409 |
11 |
Package-Manager: Portage-3.0.23, Repoman-3.0.3 |
12 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
13 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
14 |
|
15 |
.../net-scp/files/net-scp-1.2.1-fix-common.path | 28 -------- |
16 |
.../files/net-scp-1.2.1-fix-download_test.patch | 21 ------ |
17 |
.../files/net-scp-1.2.1-fix-download_test_2.patch | 25 ------- |
18 |
.../files/net-scp-1.2.1-fix-download_test_3.patch | 15 ---- |
19 |
.../files/net-scp-1.2.1-fix-upload_tests.patch | 14 ---- |
20 |
...1-raise-correct-errors-net-ssh-4.0-compat.patch | 30 -------- |
21 |
.../files/net-scp-1.2.1-raise-correct-errors.patch | 80 ---------------------- |
22 |
7 files changed, 213 deletions(-) |
23 |
|
24 |
diff --git a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-common.path b/dev-ruby/net-scp/files/net-scp-1.2.1-fix-common.path |
25 |
deleted file mode 100644 |
26 |
index ee262d238cb..00000000000 |
27 |
--- a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-common.path |
28 |
+++ /dev/null |
29 |
@@ -1,28 +0,0 @@ |
30 |
---- test/common.rb 2018-01-21 16:23:07.384173147 +0100 |
31 |
-+++ test/common.rb 2018-01-21 16:20:34.084172782 +0100 |
32 |
-@@ -1,11 +1,11 @@ |
33 |
- require 'test/unit' |
34 |
- require 'mocha/setup' |
35 |
- |
36 |
--begin |
37 |
-- gem 'net-ssh', ">= 2.0.0" |
38 |
-- require 'net/ssh' |
39 |
--rescue LoadError |
40 |
-- $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../net-ssh/lib" |
41 |
-+#begin |
42 |
-+# #gem 'net-ssh', ">= 2.0.0" |
43 |
-+# require 'net/ssh' |
44 |
-+#rescue LoadError |
45 |
-+# $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../net-ssh/lib" |
46 |
- |
47 |
- begin |
48 |
- require 'net/ssh' |
49 |
-@@ -14,7 +14,7 @@ |
50 |
- rescue LoadError => e |
51 |
- abort "could not load net/ssh v2 (#{e.inspect})" |
52 |
- end |
53 |
--end |
54 |
-+#end |
55 |
- |
56 |
- $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" |
57 |
- |
58 |
|
59 |
diff --git a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test.patch b/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test.patch |
60 |
deleted file mode 100644 |
61 |
index a138fcdb557..00000000000 |
62 |
--- a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test.patch |
63 |
+++ /dev/null |
64 |
@@ -1,21 +0,0 @@ |
65 |
---- test/test_download.rb 2018-01-22 02:08:00.000013728 +0100 |
66 |
-+++ test/test_download.rb.1 2018-01-22 02:11:49.820014276 +0100 |
67 |
-@@ -70,12 +70,12 @@ |
68 |
- end |
69 |
- |
70 |
- error = nil |
71 |
-- assert_scripted do |
72 |
-- begin |
73 |
-- scp.download!("/path/to/remote.txt") |
74 |
-- rescue |
75 |
-- error = $! |
76 |
-- end |
77 |
-+ Net::SSH::Test::Extensions::IO.with_test_extension do |
78 |
-+ begin |
79 |
-+ scp.download!("/path/to/remote.txt") |
80 |
-+ rescue |
81 |
-+ error = $! |
82 |
-+ end |
83 |
- end |
84 |
- assert_equal Net::SCP::Error, error.class |
85 |
- assert_equal "SCP did not finish successfully (1): File not found: /path/to/remote.txt\n", error.message |
86 |
|
87 |
diff --git a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test_2.patch b/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test_2.patch |
88 |
deleted file mode 100644 |
89 |
index 55a8e5f16bc..00000000000 |
90 |
--- a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test_2.patch |
91 |
+++ /dev/null |
92 |
@@ -1,25 +0,0 @@ |
93 |
---- test/test_download.rb 2018-01-22 02:26:56.440016436 +0100 |
94 |
-+++ test/test_download.rb 2018-01-22 02:32:46.076017270 +0100 |
95 |
-@@ -116,7 +116,9 @@ |
96 |
- |
97 |
- def test_download_io_with_recursive_should_raise_error |
98 |
- expect_scp_session "-f -r /path/to/remote.txt" |
99 |
-- assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote.txt", StringIO.new, :recursive => true) } |
100 |
-+ Net::SSH::Test::Extensions::IO.with_test_extension do |
101 |
-+ assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote.txt", StringIO.new, :recursive => true) } |
102 |
-+ end |
103 |
- end |
104 |
- |
105 |
- def test_download_io_with_preserve_should_ignore_preserve |
106 |
-@@ -154,8 +156,9 @@ |
107 |
- channel.sends_ok |
108 |
- channel.gets_data "D0755 0 remote\n" |
109 |
- end |
110 |
-- |
111 |
-- assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote") } |
112 |
-+ Net::SSH::Test::Extensions::IO.with_test_extension do |
113 |
-+ assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote") } |
114 |
-+ end |
115 |
- end |
116 |
- |
117 |
- def test_download_should_raise_error_if_gets_not_ok |
118 |
|
119 |
diff --git a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test_3.patch b/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test_3.patch |
120 |
deleted file mode 100644 |
121 |
index 12df02c1f00..00000000000 |
122 |
--- a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-download_test_3.patch |
123 |
+++ /dev/null |
124 |
@@ -1,15 +0,0 @@ |
125 |
---- test/test_download.rb 2018-01-22 02:35:45.200017696 +0100 |
126 |
-+++ test/test_download.rb.1 2018-01-22 02:38:40.000018113 +0100 |
127 |
-@@ -217,8 +217,10 @@ |
128 |
- channel.gets_data "E\n" |
129 |
- channel.sends_ok |
130 |
- end |
131 |
-- |
132 |
-- scp.download!("/path/to/remote", "/path/to/local", :recursive => true, :ssh => { :verbose => :debug }) |
133 |
-+ |
134 |
-+ Net::SSH::Test::Extensions::IO.with_test_extension do |
135 |
-+ scp.download!("/path/to/remote", "/path/to/local", :recursive => true, :ssh => { :verbose => :debug }) |
136 |
-+ end |
137 |
- assert_equal "a" * 1234, file.io.string |
138 |
- end |
139 |
- |
140 |
|
141 |
diff --git a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch b/dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch |
142 |
deleted file mode 100644 |
143 |
index 73c34359afc..00000000000 |
144 |
--- a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch |
145 |
+++ /dev/null |
146 |
@@ -1,14 +0,0 @@ |
147 |
---- test/test_upload.rb 2018-01-22 08:15:30.996002204 +0100 |
148 |
-+++ test/test_upload.rb.1 2018-01-22 08:18:09.328002581 +0100 |
149 |
-@@ -155,8 +155,9 @@ |
150 |
- expect_scp_session("-t /path/to/remote") do |channel| |
151 |
- channel.gets_ok |
152 |
- end |
153 |
-- |
154 |
-- assert_raises(Net::SCP::Error) { scp.upload!("/path/to/local", "/path/to/remote") } |
155 |
-+ Net::SSH::Test::Extensions::IO.with_test_extension do |
156 |
-+ assert_raises(Net::SCP::Error) { scp.upload!("/path/to/local", "/path/to/remote") } |
157 |
-+ end |
158 |
- end |
159 |
- |
160 |
- def test_upload_empty_directory_should_create_directory_and_finish |
161 |
|
162 |
diff --git a/dev-ruby/net-scp/files/net-scp-1.2.1-raise-correct-errors-net-ssh-4.0-compat.patch b/dev-ruby/net-scp/files/net-scp-1.2.1-raise-correct-errors-net-ssh-4.0-compat.patch |
163 |
deleted file mode 100644 |
164 |
index 3431f06b7cf..00000000000 |
165 |
--- a/dev-ruby/net-scp/files/net-scp-1.2.1-raise-correct-errors-net-ssh-4.0-compat.patch |
166 |
+++ /dev/null |
167 |
@@ -1,30 +0,0 @@ |
168 |
---- test/test_download.rb 2018-01-22 01:47:38.932010818 +0100 |
169 |
-+++ test/test_download.rb.1 2018-01-22 01:49:14.552011046 +0100 |
170 |
-@@ -205,9 +205,11 @@ |
171 |
- channel.sends_ok |
172 |
- channel.gets_data "\1" |
173 |
- end |
174 |
-- |
175 |
-- e = assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote.txt", "/path/to/local.txt") } |
176 |
-- assert_equal("\1", e.message) |
177 |
-+ |
178 |
-+ Net::SSH::Test::Extensions::IO.with_test_extension do |
179 |
-+ e = assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote.txt", "/path/to/local.txt") } |
180 |
-+ assert_equal("\1", e.message) |
181 |
-+ end |
182 |
- end |
183 |
- |
184 |
- def test_download_directory_should_raise_error_if_local_exists_and_is_not_directory |
185 |
-@@ -223,8 +225,10 @@ |
186 |
- channel.sends_ok |
187 |
- end |
188 |
- |
189 |
-- e = assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote", "/path/to/local", :recursive => true) } |
190 |
-- assert_match(/exists and is not a directory/, e.message) |
191 |
-+ Net::SSH::Test::Extensions::IO.with_test_extension do |
192 |
-+ e = assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote", "/path/to/local", :recursive => true) } |
193 |
-+ assert_match(/exists and is not a directory/, e.message) |
194 |
-+ end |
195 |
- end |
196 |
- |
197 |
- def test_download_directory_should_create_directory_and_files_locally |
198 |
|
199 |
diff --git a/dev-ruby/net-scp/files/net-scp-1.2.1-raise-correct-errors.patch b/dev-ruby/net-scp/files/net-scp-1.2.1-raise-correct-errors.patch |
200 |
deleted file mode 100644 |
201 |
index a23164ef818..00000000000 |
202 |
--- a/dev-ruby/net-scp/files/net-scp-1.2.1-raise-correct-errors.patch |
203 |
+++ /dev/null |
204 |
@@ -1,80 +0,0 @@ |
205 |
---- README.rdoc |
206 |
-+++ README.rdoc |
207 |
-@@ -42,7 +42,7 @@ In a nutshell: |
208 |
- data = Net::SCP::download!("remote.host.com", "username", "/remote/path") |
209 |
- |
210 |
- # use a persistent connection to transfer files |
211 |
-- Net::SCP.start("remote.host.com", "username", :ssh => { :password => "password" }) do |scp| |
212 |
-+ Net::SCP.start("remote.host.com", "username", :password => "password") do |scp| |
213 |
- # upload a file to a remote server |
214 |
- scp.upload! "/local/path", "/remote/path" |
215 |
- |
216 |
---- lib/net/scp.rb |
217 |
-+++ lib/net/scp.rb |
218 |
-@@ -395,7 +395,7 @@ module Net |
219 |
- def await_response_state(channel) |
220 |
- return if channel[:buffer].available == 0 |
221 |
- c = channel[:buffer].read_byte |
222 |
-- raise "#{c.chr}#{channel[:buffer].read}" if c != 0 |
223 |
-+ raise Net::SCP::Error, "#{c.chr}#{channel[:buffer].read}" if c != 0 |
224 |
- channel[:next], channel[:state] = nil, channel[:next] |
225 |
- send("#{channel[:state]}_state", channel) |
226 |
- end |
227 |
---- lib/net/scp/download.rb |
228 |
-+++ lib/net/scp/download.rb |
229 |
-@@ -129,7 +129,7 @@ module Net; class SCP |
230 |
- channel[:local] = File.join(channel[:local], directive[:name]) |
231 |
- |
232 |
- if File.exists?(channel[:local]) && !File.directory?(channel[:local]) |
233 |
-- raise "#{channel[:local]} already exists and is not a directory" |
234 |
-+ raise Net::SCP::Error, "#{channel[:local]} already exists and is not a directory" |
235 |
- elsif !File.exists?(channel[:local]) |
236 |
- Dir.mkdir(channel[:local], directive[:mode] | 0700) |
237 |
- end |
238 |
-@@ -162,4 +162,4 @@ module Net; class SCP |
239 |
- end |
240 |
- end |
241 |
- |
242 |
--end; end |
243 |
-\ No newline at end of file |
244 |
-+end; end |
245 |
---- test/test_download.rb |
246 |
-+++ test/test_download.rb |
247 |
-@@ -158,6 +158,37 @@ class TestDownload < Net::SCP::TestCase |
248 |
- assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote") } |
249 |
- end |
250 |
- |
251 |
-+ def test_download_should_raise_error_if_gets_not_ok |
252 |
-+ prepare_file("/path/to/local.txt", "") |
253 |
-+ |
254 |
-+ expect_scp_session "-f /path/to/remote.txt" do |channel| |
255 |
-+ channel.sends_ok |
256 |
-+ channel.gets_data "C0666 0 remote.txt\n" |
257 |
-+ channel.sends_ok |
258 |
-+ channel.gets_data "\1" |
259 |
-+ end |
260 |
-+ |
261 |
-+ e = assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote.txt", "/path/to/local.txt") } |
262 |
-+ assert_equal("\1", e.message) |
263 |
-+ end |
264 |
-+ |
265 |
-+ def test_download_directory_should_raise_error_if_local_exists_and_is_not_directory |
266 |
-+ File.stubs(:exists?).with("/path/to/local").returns(true) |
267 |
-+ File.stubs(:exists?).with("/path/to/local/remote").returns(true) |
268 |
-+ File.stubs(:directory?).with("/path/to/local/remote").returns(false) |
269 |
-+ |
270 |
-+ expect_scp_session "-f -r /path/to/remote" do |channel| |
271 |
-+ channel.sends_ok |
272 |
-+ channel.gets_data "D0755 0 remote\n" |
273 |
-+ channel.sends_ok |
274 |
-+ channel.gets_data "E\n" |
275 |
-+ channel.sends_ok |
276 |
-+ end |
277 |
-+ |
278 |
-+ e = assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote", "/path/to/local", :recursive => true) } |
279 |
-+ assert_match(/exists and is not a directory/, e.message) |
280 |
-+ end |
281 |
-+ |
282 |
- def test_download_directory_should_create_directory_and_files_locally |
283 |
- file = nil |
284 |
- prepare_directory "/path/to/local" do |dir| |