Skip to content

Commit 1704d44

Browse files
committed
Show version suffix in fetching stage
Used version is not always obvious when version is specified as `latest`, show it as early as possible.
1 parent 870b84d commit 1704d44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hererocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,11 +527,11 @@ def fetch(self):
527527
archive_name = os.path.join(opts.downloads, self.get_file_name())
528528

529529
if opts.downloads and os.path.exists(archive_name):
530-
print("Fetching {} (cached)".format(self.title))
530+
print("Fetching {}{} (cached)".format(self.title, self.version_suffix))
531531
else:
532532
for base_url in self.downloads:
533533
url = self.get_download_url(base_url)
534-
print("Fetching {} from {}".format(self.title, url))
534+
print("Fetching {}{} from {}".format(self.title, self.version_suffix, url))
535535

536536
try:
537537
download(url, archive_name)

0 commit comments

Comments
 (0)