diff --git a/.github/workflows/update-deps.py b/.github/workflows/update-deps.py index e2725fd5d..eb027f763 100644 --- a/.github/workflows/update-deps.py +++ b/.github/workflows/update-deps.py @@ -207,7 +207,8 @@ def update_version_numbers(root, pkg_name, old_version, new_version): def update_distfiles_digest(root, pkg_name): with open(os.path.join(root, DEPS_PACKAGING, pkg_name, "source"), "r") as f: - source = f.read().strip() + # The first URL; any others are mirrors pkg-get-src falls back to + source = f.read().split()[0] filename = os.path.join(root, DEPS_PACKAGING, pkg_name, "distfiles") with open(filename, "r") as f: diff --git a/deps-packaging/lmdb/source b/deps-packaging/lmdb/source index d5e779c76..f97e3e7b6 100644 --- a/deps-packaging/lmdb/source +++ b/deps-packaging/lmdb/source @@ -1 +1,2 @@ https://git.openldap.org/openldap/openldap/-/archive/LMDB_1.0.3/ +https://github.com/openldap/openldap/archive/LMDB_1.0.3/ diff --git a/deps-packaging/pkg-get-src b/deps-packaging/pkg-get-src index 3b73e5b81..ef6486fa4 100755 --- a/deps-packaging/pkg-get-src +++ b/deps-packaging/pkg-get-src @@ -45,7 +45,7 @@ checksum() test "$CHECKSUM" = "$ACTUAL_CHECKSUM" result=$? if test "$result" != "0"; then - echo "expected checksum $CHECKSUM but got $ACTUAL_CHECKSUM" + echo "expected checksum $CHECKSUM but got $ACTUAL_CHECKSUM" >&2 fi return "$result" }