Skip to content

Commit

Permalink
Merge pull request #275 from nathanchance/update-patch-application-lo…
Browse files Browse the repository at this point in the history
…gging
  • Loading branch information
msfjarvis authored Jul 26, 2024
2 parents 3907317 + f8c6304 commit 0c52784
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions tc_build/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,10 @@ def prepare(self):
# been applied.
if 'Reversed (or previously applied) patch detected' in err.stdout:
tc_build.utils.print_warning(
f"Patch ('{patch}') has already been applied, consider removing it")
f"{patch} has already been applied in {self.location}, consider removing it"
)
else:
raise err
tc_build.utils.print_info(f"Source sucessfully prepared in {self.location}")
else:
tc_build.utils.print_info(f"Applied {patch} to {self.location}")
tc_build.utils.print_info(f"Source successfully prepared in {self.location}")
5 changes: 3 additions & 2 deletions tc_build/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ def download(self):
if not self.remote_tarball_name:
self.remote_tarball_name = self.local_location.name

tc_build.utils.curl(f"{self.base_download_url}/{self.remote_tarball_name}",
destination=self.local_location)
full_url = f"{self.base_download_url}/{self.remote_tarball_name}"
tc_build.utils.print_info(f"Downloading {full_url} to {self.local_location}...")
tc_build.utils.curl(full_url, destination=self.local_location)

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

0 comments on commit 0c52784

Please sign in to comment.