Show version suffix in fetching stage

Used version is not always obvious when version
is specified as `latest`, show it as early as possible.
This commit is contained in:
Peter Melnichenko 2017-06-08 13:04:43 +03:00
parent 870b84d673
commit 1704d44482

View File

@ -527,11 +527,11 @@ class Program(object):
archive_name = os.path.join(opts.downloads, self.get_file_name()) archive_name = os.path.join(opts.downloads, self.get_file_name())
if opts.downloads and os.path.exists(archive_name): if opts.downloads and os.path.exists(archive_name):
print("Fetching {} (cached)".format(self.title)) print("Fetching {}{} (cached)".format(self.title, self.version_suffix))
else: else:
for base_url in self.downloads: for base_url in self.downloads:
url = self.get_download_url(base_url) url = self.get_download_url(base_url)
print("Fetching {} from {}".format(self.title, url)) print("Fetching {}{} from {}".format(self.title, self.version_suffix, url))
try: try:
download(url, archive_name) download(url, archive_name)