Permalink
Browse files

do not freak out on missing remote checksum, it's ok

  • Loading branch information...
1 parent 354a24a commit 5c3814ecd8ea74255479b7cf7a64ee0efc38b831 @mpapis mpapis committed Apr 19, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 core/internal/shell/package/strategies/gnu/functions
View
3 core/internal/shell/package/strategies/gnu/functions
@@ -199,8 +199,7 @@ __sm.package.fetch.checksum()
__sm.file.copy "${download_url}" "${archives_path}/${package_file}" -f
else
# TODO: we can not relay on downloaded checksum, validate with another source ?
- ${curl} -L "${download_url}" -o "${archives_path}/${package_file}.checksum" 2>/dev/null ||
- __sm.log.warn "Fetching checksum from '${download_url}' failed."
+ ${curl} -L "${download_url}" -o "${archives_path}/${package_file}.checksum" 2>/dev/null || return 1
fi
package_checksum=$(cat "${archives_path}/${package_file}.checksum")

0 comments on commit 5c3814e

Please sign in to comment.