Skip to content

Commit

Permalink
Show version suffix in fetching stage
Browse files Browse the repository at this point in the history
Used version is not always obvious when version
is specified as `latest`, show it as early as possible.
  • Loading branch information
mpeterv committed Jun 8, 2017
1 parent 870b84d commit 1704d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hererocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,11 @@ def fetch(self):
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)
Expand Down

0 comments on commit 1704d44

Please sign in to comment.