Skip to content

Commit 5fbfb9e

Browse files
committed
Delete some old directory downloading code
This was needed to add kyua to the disk image, but since it is part of FreeBSD base now, we no longer need it.
1 parent 1b3bee0 commit 5fbfb9e

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

pycheribuild/projects/disk_image.py

-21
Original file line numberDiff line numberDiff line change
@@ -248,27 +248,6 @@ def create_file_for_image(self, path_in_image: str, *, contents: str = "\n", sho
248248
self.write_file(target_file, contents, never_print_cmd=True, overwrite=False, mode=mode)
249249
self.add_file_to_image(target_file, base_directory=base_dir)
250250

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-
272251
def prepare_rootfs(self):
273252
assert self.tmpdir is not None
274253
assert self.manifest_file is not None

0 commit comments

Comments
 (0)