@@ -917,27 +917,6 @@ verify_file_integrity() {
917917 fi
918918}
919919
920- # downloader for the package tars, includes checksum
921- # backup and deprecated
922- download_pkg_from_org () {
923- # usage: download_pkg_from_org sha256 filename
924- echo " use cp2k mirror to download $__filename "
925- local __sha256=" $1 "
926- local __filename=" $2 "
927- local __url=" https://www.cp2k.org/static/downloads/$__filename "
928- # download
929- # echo "wget ${DOWNLOADER_FLAGS} --quiet $__url"
930- # if ! wget ${DOWNLOADER_FLAGS} --quiet $__url; then
931- echo " wget ${DOWNLOADER_FLAGS} $__url "
932- if ! wget ${DOWNLOADER_FLAGS} $__url ; then
933- report_error " failed to download $__url "
934- recommend_offline_installation $__filename $__url
935- if [ " ${PACK_RUN} " != " __TRUE__" ]; then
936- return 1
937- fi
938- fi
939- }
940-
941920download_pkg_from_url () {
942921 # usage: download_pkg_from_url sha256 filename url
943922 local __sha256=" $1 " # if set to "--no-checksum", do not check checksum
@@ -1000,9 +979,9 @@ download_pkg_from_url() {
1000979}
1001980
1002981# retrieve package under current directory with filename and checksum verification
1003- # if file exists and checksum is correct, only print a message
982+ # if file exists and checksum is correct, only print the success message
1004983# if file exists but checksum is incorrect, delete and re-download from cp2k.org
1005- # if file does not exist, download from cp2k.org
984+ # if file does not exist, download from corresponding websites
1006985retrieve_package () {
1007986 local __sha256=" $1 "
1008987 local __filename=" $2 "
0 commit comments