From 1704d44482f22ad5660f4753f93dcf5c0d58ac14 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Thu, 8 Jun 2017 13:04:43 +0300 Subject: [PATCH] Show version suffix in fetching stage Used version is not always obvious when version is specified as `latest`, show it as early as possible. --- hererocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hererocks.py b/hererocks.py index 8a417d1..d98a49c 100755 --- a/hererocks.py +++ b/hererocks.py @@ -527,11 +527,11 @@ class Program(object): archive_name = os.path.join(opts.downloads, self.get_file_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: for base_url in self.downloads: 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: download(url, archive_name)