Fix repo preseed in update_checksums mode

This commit is contained in:
fosslinux 2022-10-23 10:16:35 +11:00
parent e6c43ebd6a
commit c523eb9b47
1 changed files with 2 additions and 2 deletions

View File

@ -94,14 +94,14 @@ bin_preseed() {
if [ -d "${SRCDIR}/repo-preseeded" ]; then
get_revision "${pkg}"
cd "${SRCDIR}/repo-preseeded"
if src_checksum "${pkg}" $((revision)); then
if [ "${UPDATE_CHECKSUMS}" = "True" ] || src_checksum "${pkg}" $((revision)); then
echo "${pkg}: installing prebuilt package."
mv "${pkg}_${revision}"* ../repo || return 1
if [[ "${pkg}" == bash-* ]]; then
# tar does not like overwriting running bash
# shellcheck disable=SC2153
rm -f "${PREFIX}/bin/bash" "${PREFIX}/bin/sh"
fi
mv "${pkg}_${revision}"* ../repo
# shellcheck disable=SC2144
if [ -f *-repodata ]; then
mv -- *-repodata ../repo