don't abort on cachedir on different architecture

This commit is contained in:
Tobias Powalowski 2022-09-30 15:54:22 +02:00
parent 812e5f9450
commit 9e4ac63f46
2 changed files with 2 additions and 2 deletions

View file

@ -9,9 +9,9 @@ _REPODIR="$(mktemp -d "${1}"/repository.XXX)"
_CACHEDIR="${_REPODIR}/var/cache/pacman/pkg" _CACHEDIR="${_REPODIR}/var/cache/pacman/pkg"
[[ -z "${1}" ]] && _usage [[ -z "${1}" ]] && _usage
_root_check _root_check
_cachedir_check
echo "Starting repository creation ..." echo "Starting repository creation ..."
if [[ "${_RUNNING_ARCH}" == "aarch64" ]]; then if [[ "${_RUNNING_ARCH}" == "aarch64" ]]; then
_cachedir_check
_create_pacman_conf "${_REPODIR}" _create_pacman_conf "${_REPODIR}"
_prepare_pacman "${_REPODIR}" || exit 1 _prepare_pacman "${_REPODIR}" || exit 1
_download_packages "${_REPODIR}" || exit 1 _download_packages "${_REPODIR}" || exit 1

View file

@ -9,9 +9,9 @@ _REPODIR="$(mktemp -d "${1}"/repository.XXX)"
_CACHEDIR="${_REPODIR}/var/cache/pacman/pkg" _CACHEDIR="${_REPODIR}/var/cache/pacman/pkg"
[[ -z "${1}" ]] && _usage [[ -z "${1}" ]] && _usage
_root_check _root_check
_cachedir_check
echo "Starting repository creation ..." echo "Starting repository creation ..."
if [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then if [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then
_cachedir_check
_create_pacman_conf "${_REPODIR}" _create_pacman_conf "${_REPODIR}"
_prepare_pacman "${_REPODIR}" || exit 1 _prepare_pacman "${_REPODIR}" || exit 1
_download_packages "${_REPODIR}" || exit 1 _download_packages "${_REPODIR}" || exit 1