Skip to content

Commit

Permalink
freebsd-pkg: make meta instead of meta.txz mandatory
Browse files Browse the repository at this point in the history
meta.txz no longer exists for FreeBSD 14+, observed from http://pkg0.kwc.freebsd.org.

Related: ustclug/discussions#458
  • Loading branch information
taoky committed May 30, 2024
1 parent bbae205 commit d34eb24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freebsd-pkg/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit d34eb24

Please sign in to comment.