@@ -248,27 +248,6 @@ def create_file_for_image(self, path_in_image: str, *, contents: str = "\n", sho
248
248
self .write_file (target_file , contents , never_print_cmd = True , overwrite = False , mode = mode )
249
249
self .add_file_to_image (target_file , base_directory = base_dir )
250
250
251
- def _wget_fetch (self , what , where ):
252
- # https://apple.stackexchange.com/a/100573/251654
253
- # https://www.gnu.org/software/wget/manual/html_node/Directory-Options.html
254
- wget_cmd = ["wget" , "--no-host-directories" , "--cut-dirs=3" , # strip prefix
255
- "--timestamping" , "-r" , "--level" , "inf" , "--no-parent" , # recursive but ignore parents
256
- "--convert-links" , "--execute=robots = off" ,
257
- # ignore robots.txt files, don't download robots.txt files"
258
- "--no-verbose" ,
259
- ]
260
- self .run_cmd (wget_cmd + what , cwd = where )
261
-
262
- def _wget_fetch_dir (self , what , where ):
263
- if self .wget_via_tmp :
264
- with tempfile .TemporaryDirectory (prefix = "cheribuild-wget-" ) as td :
265
- # Speed things up by using whatever we've got locally, too
266
- self .run_cmd ("rsync" , "-avvP" , str (where ) + "/." , td + "/." )
267
- self ._wget_fetch (what , td )
268
- self .run_cmd ("rsync" , "-avvP" , "--no-times" , "--delete" , td + "/." , str (where ) + "/." )
269
- else :
270
- self ._wget_fetch (what , where )
271
-
272
251
def prepare_rootfs (self ):
273
252
assert self .tmpdir is not None
274
253
assert self .manifest_file is not None
0 commit comments