Skip to content

Commit

Permalink
dep_install.sh - only verify checksum of new downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Aug 17, 2016
1 parent 84f498b commit 53693f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions planemo/shed2tap/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ def _commands_to_download_and_extract(url, target_filename=None, sha256sum=None)
' echo "Downloading %s"' % downloaded_filename,
' curl -L -o "$DOWNLOAD_CACHE/%s" "%s"' % (downloaded_filename, url),
' ln -s "$DOWNLOAD_CACHE/%s" "%s"' % (downloaded_filename, downloaded_filename),
'fi',
]

if sha256sum:
# Note double space between checksum and filename
answer.append('echo "%s %s" | shasum -a 256 -c -' % (sha256sum, downloaded_filename))
# This is inserted into the if-else for a fresh download only.
# Note double space between checksum and filename:
answer.append(' echo "%s %s" | shasum -a 256 -c -' % (sha256sum, downloaded_filename))
answer.append('fi')

# Now should we unpack the tar-ball etc?
answer.extend(_determine_compressed_file_folder(url, downloaded_filename, sha256sum))
Expand Down

0 comments on commit 53693f9

Please sign in to comment.