diff --git a/freebsd-pkg/sync.sh b/freebsd-pkg/sync.sh index ea54a57..1105782 100755 --- a/freebsd-pkg/sync.sh +++ b/freebsd-pkg/sync.sh @@ -33,8 +33,8 @@ channel_sync() { # get meta-data export remote_url=$baseurl export local_dir=$tmpdir - enable_mtime=true fail_to_exit=false download <<<"$(echo digests.txz meta.conf meta.pkg packagesite.pkg | tr ' ' '\n')" - enable_mtime=true fail_to_exit=true download <<<"$(echo meta.txz packagesite.txz | tr ' ' '\n')" + enable_mtime=true fail_to_exit=false download <<<"$(echo digests.txz meta.txz meta.conf meta.pkg packagesite.pkg | tr ' ' '\n')" + enable_mtime=true fail_to_exit=true download <<<"$(echo meta packagesite.txz | tr ' ' '\n')" if [[ $? -ne 0 ]]; then echo "[FATAL] download meta-data failed."