Skip to content

Commit 0c52784

Browse files
authored
Merge pull request #275 from nathanchance/update-patch-application-logging
2 parents 3907317 + f8c6304 commit 0c52784

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tc_build/kernel.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ def prepare(self):
459459
# been applied.
460460
if 'Reversed (or previously applied) patch detected' in err.stdout:
461461
tc_build.utils.print_warning(
462-
f"Patch ('{patch}') has already been applied, consider removing it")
462+
f"{patch} has already been applied in {self.location}, consider removing it"
463+
)
463464
else:
464465
raise err
465-
tc_build.utils.print_info(f"Source sucessfully prepared in {self.location}")
466+
else:
467+
tc_build.utils.print_info(f"Applied {patch} to {self.location}")
468+
tc_build.utils.print_info(f"Source successfully prepared in {self.location}")

tc_build/source.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ def download(self):
2929
if not self.remote_tarball_name:
3030
self.remote_tarball_name = self.local_location.name
3131

32-
tc_build.utils.curl(f"{self.base_download_url}/{self.remote_tarball_name}",
33-
destination=self.local_location)
32+
full_url = f"{self.base_download_url}/{self.remote_tarball_name}"
33+
tc_build.utils.print_info(f"Downloading {full_url} to {self.local_location}...")
34+
tc_build.utils.curl(full_url, destination=self.local_location)
3435

3536
# If there is a remote checksum file, download it, find the checksum
3637
# for the particular tarball, compute the downloaded file's checksum,

0 commit comments

Comments
 (0)